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.60.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.59.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.58.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.57.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.56.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.55.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.54.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.53.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.52.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.51.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.50.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.49.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.48.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.45.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.44.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.43.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.42.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.41.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.40.pre lib/cmor/cms/configuration.rb
cmor_cms-0.0.39.pre lib/cmor/cms/configuration.rb