Sha256: 970e89c942c51c38dd74052f9d32b51e2df89287ab548b91b0e3525746e7d190

Contents?: true

Size: 817 Bytes

Versions: 56

Compression:

Stored size: 817 Bytes

Contents

require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/module/attribute_accessors'
require 'active_support/hash_with_indifferent_access'

module Cmor
  module Cms
    module Configuration
      def configure
        yield self
      end

      mattr_accessor :base_controller do
        'ApplicationController'
      end

      mattr_accessor :default_handlers do
        HashWithIndifferentAccess.new
      end

      mattr_accessor :site_title do
        ''
      end

      mattr_accessor :navigation_item_properties do
        []
      end

      mattr_accessor(:navigation_locale_fallback) { ->(navigation_name, locale) {false} }

      def default_handlers=(default_handlers)
        @@default_handlers = HashWithIndifferentAccess.new(default_handlers)
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
cmor_cms-0.0.17.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.15.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.14.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.13.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.12.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.11.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.10.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.9.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.8.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.7.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.6.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.5.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.4.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.3.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.2.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.1.pre lib/cmor/cms/configuration.rb