Class: Lolita::SystemConfiguration::Application

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#assetsObject



14
15
16
# File 'lib/lolita/system_configuration/application.rb', line 14

def assets
   @assets ||= []
end

#nameObject



10
11
12
# File 'lib/lolita/system_configuration/application.rb', line 10

def name
  @name || default_name
end

#per_pageObject

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_routesObject

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_nameObject



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