Class: Cms::Configuration
- Inherits:
-
Object
- Object
- Cms::Configuration
- Defined in:
- lib/cms.rb
Instance Attribute Summary collapse
-
#admin_layout ⇒ Object
Returns the value of attribute admin_layout.
-
#admin_parent_controller ⇒ Object
Returns the value of attribute admin_parent_controller.
-
#api_page_serializer_class ⇒ Object
Returns the value of attribute api_page_serializer_class.
-
#api_site_serializer_class ⇒ Object
Returns the value of attribute api_site_serializer_class.
-
#authorize_admin ⇒ Object
Returns the value of attribute authorize_admin.
-
#auto_destroy_orphaned_sections ⇒ Object
Returns the value of attribute auto_destroy_orphaned_sections.
-
#current_site_resolver ⇒ Object
Returns the value of attribute current_site_resolver.
-
#form_submission_email ⇒ Object
Returns the value of attribute form_submission_email.
-
#image_renditions ⇒ Object
Returns the value of attribute image_renditions.
-
#mailer_from ⇒ Object
Returns the value of attribute mailer_from.
-
#page_resolver_class ⇒ Object
Returns the value of attribute page_resolver_class.
-
#page_templates ⇒ Object
Returns the value of attribute page_templates.
-
#parent_controller ⇒ Object
Returns the value of attribute parent_controller.
-
#public_layout ⇒ Object
Returns the value of attribute public_layout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/cms.rb', line 24 def initialize @parent_controller = "ApplicationController" @admin_parent_controller = nil @admin_layout = "cms/application" @public_layout = "cms/public" @image_renditions = {} @page_templates = [] @page_resolver_class = "Cms::PageResolver" @api_site_serializer_class = "Cms::Api::SiteSerializer" @api_page_serializer_class = "Cms::Api::PageSerializer" @mailer_from = nil = nil @auto_destroy_orphaned_sections = false end |
Instance Attribute Details
#admin_layout ⇒ Object
Returns the value of attribute admin_layout.
9 10 11 |
# File 'lib/cms.rb', line 9 def admin_layout @admin_layout end |
#admin_parent_controller ⇒ Object
Returns the value of attribute admin_parent_controller.
9 10 11 |
# File 'lib/cms.rb', line 9 def admin_parent_controller @admin_parent_controller end |
#api_page_serializer_class ⇒ Object
Returns the value of attribute api_page_serializer_class.
9 10 11 |
# File 'lib/cms.rb', line 9 def api_page_serializer_class @api_page_serializer_class end |
#api_site_serializer_class ⇒ Object
Returns the value of attribute api_site_serializer_class.
9 10 11 |
# File 'lib/cms.rb', line 9 def api_site_serializer_class @api_site_serializer_class end |
#authorize_admin ⇒ Object
Returns the value of attribute authorize_admin.
9 10 11 |
# File 'lib/cms.rb', line 9 def end |
#auto_destroy_orphaned_sections ⇒ Object
Returns the value of attribute auto_destroy_orphaned_sections.
9 10 11 |
# File 'lib/cms.rb', line 9 def auto_destroy_orphaned_sections @auto_destroy_orphaned_sections end |
#current_site_resolver ⇒ Object
Returns the value of attribute current_site_resolver.
9 10 11 |
# File 'lib/cms.rb', line 9 def current_site_resolver @current_site_resolver end |
#form_submission_email ⇒ Object
Returns the value of attribute form_submission_email.
9 10 11 |
# File 'lib/cms.rb', line 9 def form_submission_email @form_submission_email end |
#image_renditions ⇒ Object
Returns the value of attribute image_renditions.
9 10 11 |
# File 'lib/cms.rb', line 9 def image_renditions @image_renditions end |
#mailer_from ⇒ Object
Returns the value of attribute mailer_from.
9 10 11 |
# File 'lib/cms.rb', line 9 def mailer_from @mailer_from end |
#page_resolver_class ⇒ Object
Returns the value of attribute page_resolver_class.
9 10 11 |
# File 'lib/cms.rb', line 9 def page_resolver_class @page_resolver_class end |
#page_templates ⇒ Object
Returns the value of attribute page_templates.
9 10 11 |
# File 'lib/cms.rb', line 9 def page_templates @page_templates end |
#parent_controller ⇒ Object
Returns the value of attribute parent_controller.
9 10 11 |
# File 'lib/cms.rb', line 9 def parent_controller @parent_controller end |
#public_layout ⇒ Object
Returns the value of attribute public_layout.
9 10 11 |
# File 'lib/cms.rb', line 9 def public_layout @public_layout end |