Class: Tiler::Configuration
- Inherits:
-
Object
- Object
- Tiler::Configuration
- Defined in:
- lib/tiler/configuration.rb
Instance Attribute Summary collapse
-
#authorize_ingest ⇒ Object
Returns the value of attribute authorize_ingest.
-
#authorize_manage ⇒ Object
Returns the value of attribute authorize_manage.
-
#authorize_view ⇒ Object
Returns the value of attribute authorize_view.
-
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
-
#default_refresh_seconds ⇒ Object
Returns the value of attribute default_refresh_seconds.
-
#disable_polling ⇒ Object
Returns the value of attribute disable_polling.
-
#eager_panel_load ⇒ Object
Returns the value of attribute eager_panel_load.
-
#layout ⇒ Object
Returns the value of attribute layout.
-
#parent_controller ⇒ Object
Returns the value of attribute parent_controller.
-
#webhook_token_header ⇒ Object
Returns the value of attribute webhook_token_header.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/tiler/configuration.rb', line 14 def initialize @parent_controller = "::ApplicationController" @layout = "tiler/application" @authorize_view = ->(_ctrl) { true } @authorize_manage = ->(_ctrl) { true } @authorize_ingest = ->(_ctrl, _source) { true } @current_user_method = :current_user @webhook_token_header = "X-Tiler-Token" @default_refresh_seconds = 0 @eager_panel_load = false # When true, the dashboard grid Stimulus controller will NOT start the # polling refresh interval — Turbo Streams broadcasts (broadcasts_to on # Tiler::Panel + turbo_stream_from in show.html.erb) handle live updates. # Leave false on hosts without ActionCable/Redis configured. @disable_polling = false end |
Instance Attribute Details
#authorize_ingest ⇒ Object
Returns the value of attribute authorize_ingest.
3 4 5 |
# File 'lib/tiler/configuration.rb', line 3 def @authorize_ingest end |
#authorize_manage ⇒ Object
Returns the value of attribute authorize_manage.
3 4 5 |
# File 'lib/tiler/configuration.rb', line 3 def @authorize_manage end |
#authorize_view ⇒ Object
Returns the value of attribute authorize_view.
3 4 5 |
# File 'lib/tiler/configuration.rb', line 3 def @authorize_view end |
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
3 4 5 |
# File 'lib/tiler/configuration.rb', line 3 def current_user_method @current_user_method end |
#default_refresh_seconds ⇒ Object
Returns the value of attribute default_refresh_seconds.
3 4 5 |
# File 'lib/tiler/configuration.rb', line 3 def default_refresh_seconds @default_refresh_seconds end |
#disable_polling ⇒ Object
Returns the value of attribute disable_polling.
3 4 5 |
# File 'lib/tiler/configuration.rb', line 3 def disable_polling @disable_polling end |
#eager_panel_load ⇒ Object
Returns the value of attribute eager_panel_load.
3 4 5 |
# File 'lib/tiler/configuration.rb', line 3 def eager_panel_load @eager_panel_load end |
#layout ⇒ Object
Returns the value of attribute layout.
3 4 5 |
# File 'lib/tiler/configuration.rb', line 3 def layout @layout end |
#parent_controller ⇒ Object
Returns the value of attribute parent_controller.
3 4 5 |
# File 'lib/tiler/configuration.rb', line 3 def parent_controller @parent_controller end |
#webhook_token_header ⇒ Object
Returns the value of attribute webhook_token_header.
3 4 5 |
# File 'lib/tiler/configuration.rb', line 3 def webhook_token_header @webhook_token_header end |