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.
-
#login_site_selector ⇒ Object
Returns the value of attribute login_site_selector.
-
#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.
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/cms-fortress.rb', line 36 def initialize self.class.send(:include, Rails.application.routes.url_helpers) @theme = :default @enable_page_workflow = true @enable_page_caching = true @login_site_selector = false @content_resources = [ {:name => 'pages', :title => 'comfy.admin.cms.base.pages', :path => 'comfy_admin_cms_site_pages_path(@site) if @site && [email protected]_record?'}, {:name => 'files', :title => 'comfy.admin.cms.base.files', :path => 'comfy_admin_cms_site_files_path(@site) if @site && [email protected]_record?'} ] @design_resources = [ {:name => 'layouts', :title => 'comfy.admin.cms.base.layouts', :path => 'comfy_admin_cms_site_layouts_path(@site) if @site && [email protected]_record?' }, {:name => 'snippets', :title => 'comfy.admin.cms.base.snippets', :path => 'comfy_admin_cms_site_snippets_path(@site) if @site && [email protected]_record?'} ] @settings_resources = [ {name: 'dropdown-header', title: "cms.fortress.admin.super_user.menu_header", super_user: true}, {:name => 'sites', :title => 'comfy.admin.cms.base.sites', :path => 'comfy_admin_cms_sites_path', :super_user => true}, {:name => 'super_users', :title => 'cms.fortress.admin.super_user.title', :path => 'super_cms_fortress_users_path', :super_user => true}, {name: 'divider', super_user: true}, {name: 'dropdown-header', title: "cms.fortress.admin.sites.menu_header"}, {: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.
28 29 30 |
# File 'lib/cms-fortress.rb', line 28 def content_resources @content_resources end |
#design_resources ⇒ Object
Returns the value of attribute design_resources.
29 30 31 |
# File 'lib/cms-fortress.rb', line 29 def design_resources @design_resources end |
#enable_page_caching ⇒ Object
Returns the value of attribute enable_page_caching.
32 33 34 |
# File 'lib/cms-fortress.rb', line 32 def enable_page_caching @enable_page_caching end |
#enable_page_workflow ⇒ Object
Returns the value of attribute enable_page_workflow.
31 32 33 |
# File 'lib/cms-fortress.rb', line 31 def enable_page_workflow @enable_page_workflow end |
#login_site_selector ⇒ Object
Returns the value of attribute login_site_selector.
34 35 36 |
# File 'lib/cms-fortress.rb', line 34 def login_site_selector @login_site_selector end |
#settings_resources ⇒ Object
Returns the value of attribute settings_resources.
30 31 32 |
# File 'lib/cms-fortress.rb', line 30 def settings_resources @settings_resources end |
#theme ⇒ Object
Returns the value of attribute theme.
33 34 35 |
# File 'lib/cms-fortress.rb', line 33 def theme @theme end |