Sha256: ba03d7dacba114bb22bc43224416e3603f089f97273c8b750f64fb799445ade9

Contents?: true

Size: 888 Bytes

Versions: 25

Compression:

Stored size: 888 Bytes

Contents

module Spud
  module Cms
    include ActiveSupport::Configurable

    config_accessor :menus_enabled,:root_page_name,:yield_body_as_content_block,:default_page_layout,:enable_sitemap,:multisite_config,:max_revisions,:template_404, :cache_mode, :snippets_enabled
    self.menus_enabled = true
    self.snippets_enabled = true
    self.root_page_name = "home"
    self.default_page_layout = 'application'
  	self.yield_body_as_content_block = false
    self.cache_mode = nil #Options :full_page, :action

    self.enable_sitemap = true
    self.max_revisions = 10
    self.template_404 = nil
    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

25 entries across 25 versions & 1 rubygems

Version Path
spud_cms-1.0.2 lib/spud_cms/configuration.rb
spud_cms-1.0.1 lib/spud_cms/configuration.rb
spud_cms-1.0.0 lib/spud_cms/configuration.rb
spud_cms-1.0.0.rc1.4 lib/spud_cms/configuration.rb
spud_cms-1.0.0.rc1.3 lib/spud_cms/configuration.rb
spud_cms-1.0.0.rc1.2 lib/spud_cms/configuration.rb
spud_cms-1.0.0.rc1.1 lib/spud_cms/configuration.rb
spud_cms-1.0.0.RC1 lib/spud_cms/configuration.rb
spud_cms-0.9.21 lib/spud_cms/configuration.rb
spud_cms-0.9.20 lib/spud_cms/configuration.rb
spud_cms-0.9.18 lib/spud_cms/configuration.rb
spud_cms-0.9.17 lib/spud_cms/configuration.rb
spud_cms-0.9.15 lib/spud_cms/configuration.rb
spud_cms-0.9.14 lib/spud_cms/configuration.rb
spud_cms-0.9.13 lib/spud_cms/configuration.rb
spud_cms-0.9.12 lib/spud_cms/configuration.rb
spud_cms-0.9.11 lib/spud_cms/configuration.rb
spud_cms-0.9.10 lib/spud_cms/configuration.rb
spud_cms-0.9.9 lib/spud_cms/configuration.rb
spud_cms-0.9.8 lib/spud_cms/configuration.rb