Class: Sail::Configuration

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

Overview

Configuration This class keeps the configuration data for the gem. Defaults be found here and can be overridden in an initializer, environment file or application.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
# File 'lib/sail/configuration.rb', line 14

def initialize
  @cache_life_span = 10.minutes
  @array_separator = ";"
  @dashboard_auth_lambda = nil
  @back_link_path = "root_path"
  @enable_search_auto_submit = true
end

Instance Attribute Details

#array_separatorObject

Returns the value of attribute array_separator.



11
12
13
# File 'lib/sail/configuration.rb', line 11

def array_separator
  @array_separator
end

Returns the value of attribute back_link_path.



11
12
13
# File 'lib/sail/configuration.rb', line 11

def back_link_path
  @back_link_path
end

#cache_life_spanObject

Returns the value of attribute cache_life_span.



11
12
13
# File 'lib/sail/configuration.rb', line 11

def cache_life_span
  @cache_life_span
end

#dashboard_auth_lambdaObject

Returns the value of attribute dashboard_auth_lambda.



11
12
13
# File 'lib/sail/configuration.rb', line 11

def dashboard_auth_lambda
  @dashboard_auth_lambda
end

#enable_search_auto_submitObject

Returns the value of attribute enable_search_auto_submit.



11
12
13
# File 'lib/sail/configuration.rb', line 11

def enable_search_auto_submit
  @enable_search_auto_submit
end