Class: RocketCMS::Configuration
- Inherits:
 - 
      Object
      
        
- Object
 - RocketCMS::Configuration
 
 
- Defined in:
 - lib/rocket_cms/configuration.rb
 
Instance Attribute Summary collapse
- 
  
    
      #contacts_captcha  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute contacts_captcha.
 - 
  
    
      #contacts_fields  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute contacts_fields.
 - 
  
    
      #contacts_message_required  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute contacts_message_required.
 - 
  
    
      #error_layout  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute error_layout.
 - 
  
    
      #localize  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute localize.
 - 
  
    
      #menu_max_depth  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute menu_max_depth.
 - 
  
    
      #news_content_required  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute news_content_required.
 - 
  
    
      #news_excerpt  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute news_excerpt.
 - 
  
    
      #news_image_styles  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute news_image_styles.
 - 
  
    
      #news_per_page  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute news_per_page.
 - 
  
    
      #search_enabled  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute search_enabled.
 - 
  
    
      #search_models  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute search_models.
 - 
  
    
      #search_per_page  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute search_per_page.
 
Instance Method Summary collapse
- 
  
    
      #initialize  ⇒ Configuration 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Configuration.
 
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
      32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53  | 
    
      # File 'lib/rocket_cms/configuration.rb', line 32 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 end  | 
  
Instance Attribute Details
#contacts_captcha ⇒ Object
Returns the value of attribute contacts_captcha.
      26 27 28  | 
    
      # File 'lib/rocket_cms/configuration.rb', line 26 def contacts_captcha @contacts_captcha end  | 
  
#contacts_fields ⇒ Object
Returns the value of attribute contacts_fields.
      27 28 29  | 
    
      # File 'lib/rocket_cms/configuration.rb', line 27 def contacts_fields @contacts_fields end  | 
  
#contacts_message_required ⇒ Object
Returns the value of attribute contacts_message_required.
      28 29 30  | 
    
      # File 'lib/rocket_cms/configuration.rb', line 28 def @contacts_message_required end  | 
  
#error_layout ⇒ Object
Returns the value of attribute error_layout.
      19 20 21  | 
    
      # File 'lib/rocket_cms/configuration.rb', line 19 def error_layout @error_layout end  | 
  
#localize ⇒ Object
Returns the value of attribute localize.
      30 31 32  | 
    
      # File 'lib/rocket_cms/configuration.rb', line 30 def localize @localize end  | 
  
#menu_max_depth ⇒ Object
Returns the value of attribute menu_max_depth.
      20 21 22  | 
    
      # File 'lib/rocket_cms/configuration.rb', line 20 def @menu_max_depth end  | 
  
#news_content_required ⇒ Object
Returns the value of attribute news_content_required.
      17 18 19  | 
    
      # File 'lib/rocket_cms/configuration.rb', line 17 def news_content_required @news_content_required end  | 
  
#news_excerpt ⇒ Object
Returns the value of attribute news_excerpt.
      16 17 18  | 
    
      # File 'lib/rocket_cms/configuration.rb', line 16 def news_excerpt @news_excerpt end  | 
  
#news_image_styles ⇒ Object
Returns the value of attribute news_image_styles.
      14 15 16  | 
    
      # File 'lib/rocket_cms/configuration.rb', line 14 def news_image_styles @news_image_styles end  | 
  
#news_per_page ⇒ Object
Returns the value of attribute news_per_page.
      15 16 17  | 
    
      # File 'lib/rocket_cms/configuration.rb', line 15 def news_per_page @news_per_page end  | 
  
#search_enabled ⇒ Object
Returns the value of attribute search_enabled.
      22 23 24  | 
    
      # File 'lib/rocket_cms/configuration.rb', line 22 def search_enabled @search_enabled end  | 
  
#search_models ⇒ Object
Returns the value of attribute search_models.
      24 25 26  | 
    
      # File 'lib/rocket_cms/configuration.rb', line 24 def search_models @search_models end  | 
  
#search_per_page ⇒ Object
Returns the value of attribute search_per_page.
      23 24 25  | 
    
      # File 'lib/rocket_cms/configuration.rb', line 23 def search_per_page @search_per_page end  |