Class: Cms::Fortress::Configuration
- Inherits:
-
Object
- Object
- Cms::Fortress::Configuration
- Defined in:
- lib/cms-fortress.rb
Instance Attribute Summary collapse
-
#content_resources ⇒ Object
Returns the value of attribute content_resources.
-
#design_resources ⇒ Object
Returns the value of attribute design_resources.
-
#enable_page_caching ⇒ Object
Returns the value of attribute enable_page_caching.
-
#enable_page_workflow ⇒ Object
Returns the value of attribute enable_page_workflow.
-
#settings_resources ⇒ Object
Returns the value of attribute settings_resources.
-
#theme ⇒ Object
Returns the value of attribute theme.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/cms-fortress.rb', line 30 def initialize self.class.send(:include, Rails.application.routes.url_helpers) @theme = :default @enable_page_workflow = true @enable_page_caching = true @content_resources = [ {:name => 'pages', :title => 'admin.cms.base.pages', :path => 'admin_cms_site_pages_path(@site) if @site && [email protected]_record?'}, {:name => 'files', :title => 'admin.cms.base.files', :path => 'admin_cms_site_files_path(@site) if @site && [email protected]_record?'} ] @design_resources = [ {:name => 'layouts', :title => 'admin.cms.base.layouts', :path => 'admin_cms_site_layouts_path(@site) if @site && [email protected]_record?' }, {:name => 'snippets', :title => 'admin.cms.base.snippets', :path => 'admin_cms_site_snippets_path(@site) if @site && [email protected]_record?'} ] @settings_resources = [ {:name => 'sites', :title => 'admin.cms.base.sites', :path => 'admin_cms_sites_path'}, {:name => 'roles', :title => 'cms.fortress.roles.title', :path => 'cms_fortress_roles_path'}, {:name => 'users', :title => 'cms.fortress.users.title', :path => 'cms_fortress_users_path'} ] end |
Instance Attribute Details
#content_resources ⇒ Object
Returns the value of attribute content_resources.
23 24 25 |
# File 'lib/cms-fortress.rb', line 23 def content_resources @content_resources end |
#design_resources ⇒ Object
Returns the value of attribute design_resources.
24 25 26 |
# File 'lib/cms-fortress.rb', line 24 def design_resources @design_resources end |
#enable_page_caching ⇒ Object
Returns the value of attribute enable_page_caching.
27 28 29 |
# File 'lib/cms-fortress.rb', line 27 def enable_page_caching @enable_page_caching end |
#enable_page_workflow ⇒ Object
Returns the value of attribute enable_page_workflow.
26 27 28 |
# File 'lib/cms-fortress.rb', line 26 def enable_page_workflow @enable_page_workflow end |
#settings_resources ⇒ Object
Returns the value of attribute settings_resources.
25 26 27 |
# File 'lib/cms-fortress.rb', line 25 def settings_resources @settings_resources end |
#theme ⇒ Object
Returns the value of attribute theme.
28 29 30 |
# File 'lib/cms-fortress.rb', line 28 def theme @theme end |