Sha256: 1e2a7806217a664bf99ad9572e51bd6a5644af75d5b7fbcb0059cc49dde9ec8e

Contents?: true

Size: 972 Bytes

Versions: 3

Compression:

Stored size: 972 Bytes

Contents

module Spud
  module Cms
    include ActiveSupport::Configurable

    config_accessor :menus_enabled,:templates_enabled,:root_page_name,:default_page_parts,:yield_body_as_content_block,:default_page_layout,:enable_sitemap,:enable_full_page_caching,:enable_action_caching,:multisite_config,:max_revisions

    self.root_page_name = "home"
    self.menus_enabled = true
    self.templates_enabled = false
    self.default_page_layout = 'application'
    self.default_page_parts = ["Body"]
  	self.yield_body_as_content_block = false    
    self.enable_full_page_caching = false
    self.enable_action_caching = false
    self.enable_sitemap = true
    self.max_revisions = 10
    self.multisite_config = []
    def self.site_config_for_short_name(short_name)
        configs = Spud::Cms.multisite_config.select{|p| p[:short_name].to_s == short_name.to_s}
        if configs.blank?
          return nil
        else
          return configs[0]
        end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spud_cms-0.8.11 lib/spud_cms/configuration.rb
spud_cms-0.8.10 lib/spud_cms/configuration.rb
spud_cms-0.8.9 lib/spud_cms/configuration.rb