Class: Cms::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/cms.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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
  @authorize_admin = nil
  @auto_destroy_orphaned_sections = false
end

Instance Attribute Details

#admin_layoutObject

Returns the value of attribute admin_layout.



9
10
11
# File 'lib/cms.rb', line 9

def admin_layout
  @admin_layout
end

#admin_parent_controllerObject

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_classObject

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_classObject

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_adminObject

Returns the value of attribute authorize_admin.



9
10
11
# File 'lib/cms.rb', line 9

def authorize_admin
  @authorize_admin
end

#auto_destroy_orphaned_sectionsObject

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_resolverObject

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_emailObject

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_renditionsObject

Returns the value of attribute image_renditions.



9
10
11
# File 'lib/cms.rb', line 9

def image_renditions
  @image_renditions
end

#mailer_fromObject

Returns the value of attribute mailer_from.



9
10
11
# File 'lib/cms.rb', line 9

def mailer_from
  @mailer_from
end

#page_resolver_classObject

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_templatesObject

Returns the value of attribute page_templates.



9
10
11
# File 'lib/cms.rb', line 9

def page_templates
  @page_templates
end

#parent_controllerObject

Returns the value of attribute parent_controller.



9
10
11
# File 'lib/cms.rb', line 9

def parent_controller
  @parent_controller
end

#public_layoutObject

Returns the value of attribute public_layout.



9
10
11
# File 'lib/cms.rb', line 9

def public_layout
  @public_layout
end