Sha256: e18c96e2a601798fc2c570c0bf5add5fe249c2de7093c04c7a2115a8a47362c3

Contents?: true

Size: 593 Bytes

Versions: 3

Compression:

Stored size: 593 Bytes

Contents

module Enjoy::Pages
  def self.configuration
    @configuration ||= Configuration.new
  end
  def self.config
    @configuration ||= Configuration.new
  end

  def self.configure
    yield configuration
  end

  class Configuration
    attr_accessor :menu_max_depth

    attr_accessor :seo_support

    attr_accessor :localize

    attr_accessor :breadcrumbs_on_rails_support

    def initialize
      @menu_max_depth = 2

      @seo_support = defined? Enjoy::Seo

      @localize   = Enjoy.config.localize

      @breadcrumbs_on_rails_support = defined?(BreadcrumbsOnRails)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enjoy_cms_pages-0.4.1 lib/enjoy/pages/configuration.rb
enjoy_cms_pages-0.4.0 lib/enjoy/pages/configuration.rb
enjoy_cms_pages-0.4.0.beta3 lib/enjoy/pages/configuration.rb