Method: RocketCMS::Configuration#initialize

Defined in:
lib/rocket_cms/configuration.rb

#initializeConfiguration

Returns a new instance of Configuration.



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/rocket_cms/configuration.rb', line 31

def initialize
  @news_image_styles = {
    main:  '400x200>',
    thumb: '200x100>',
  }
  @news_per_page = 10
  @news_excerpt = 12

  @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
end