class RocketCMS::Configuration
Attributes
contacts_captcha[RW]
contacts_fields[RW]
contacts_message_required[RW]
error_layout[RW]
localize[RW]
news_content_required[RW]
news_excerpt[RW]
news_image_styles[RW]
news_per_page[RW]
search_enabled[RW]
search_models[RW]
search_per_page[RW]
seo_active_by_default[RW]
separate_seo_table[RW]
Public Class Methods
new()
click to toggle source
# File lib/rocket_cms/configuration.rb, line 36 def initialize @news_image_styles = { main: '400x200>', thumb: '200x100>', } @news_per_page = 10 @news_excerpt = 12 @news_content_required = true @error_layout = 'application' @menu_max_depth = 2 @search_enabled = false @search_per_page = 10 @search_models = [] @contacts_captcha = false @contacts_fields = {} @contacts_message_required = true @localize = false @separate_seo_table = false @seo_active_by_default = true end
Public Instance Methods
search_enabled=(val)
click to toggle source
# File lib/rocket_cms/configuration.rb, line 62 def search_enabled=(val) @search_enabled = val if @search_enabled @search_models << 'Page' @search_models << 'News' end end