Class: Tiler::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/tiler/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_ingestObject

Returns the value of attribute authorize_ingest.



3
4
5
# File 'lib/tiler/configuration.rb', line 3

def authorize_ingest
  @authorize_ingest
end

#authorize_manageObject

Returns the value of attribute authorize_manage.



3
4
5
# File 'lib/tiler/configuration.rb', line 3

def authorize_manage
  @authorize_manage
end

#authorize_viewObject

Returns the value of attribute authorize_view.



3
4
5
# File 'lib/tiler/configuration.rb', line 3

def authorize_view
  @authorize_view
end

#current_user_methodObject

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_secondsObject

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_pollingObject

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_loadObject

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

#layoutObject

Returns the value of attribute layout.



3
4
5
# File 'lib/tiler/configuration.rb', line 3

def layout
  @layout
end

#parent_controllerObject

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_headerObject

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