Class: Lolita::SystemConfiguration::Application
- Defined in:
- lib/lolita/system_configuration/application.rb
Overview
This configuration is used in application lolita initializer For detailed documentation see initializer.
Instance Attribute Summary collapse
- #assets ⇒ Object
- #name ⇒ Object
-
#per_page ⇒ Object
Returns the value of attribute per_page.
-
#skip_routes ⇒ Object
Returns the value of attribute skip_routes.
Instance Method Summary collapse
Instance Attribute Details
#assets ⇒ Object
14 15 16 |
# File 'lib/lolita/system_configuration/application.rb', line 14 def assets @assets ||= [] end |
#name ⇒ Object
10 11 12 |
# File 'lib/lolita/system_configuration/application.rb', line 10 def name @name || default_name end |
#per_page ⇒ Object
Returns the value of attribute per_page.
8 9 10 |
# File 'lib/lolita/system_configuration/application.rb', line 8 def per_page @per_page end |
#skip_routes ⇒ Object
Returns the value of attribute skip_routes.
8 9 10 |
# File 'lib/lolita/system_configuration/application.rb', line 8 def skip_routes @skip_routes end |
Instance Method Details
#default_name ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/lolita/system_configuration/application.rb', line 18 def default_name if defined?(Rails) Rails::Application.subclasses.first.to_s.split("::").first else "Lolita" end end |