Sha256: 5323c570815324e40d0e5a2a725446b3cdaf777877c58ab7e85110015ef108cb

Contents?: true

Size: 954 Bytes

Versions: 15

Compression:

Stored size: 954 Bytes

Contents

module Alchemy
  class Engine < Rails::Engine
    isolate_namespace Alchemy
    engine_name 'alchemy'
    config.mount_at = '/'

    initializer 'alchemy.lookup_context' do
      Alchemy::LOOKUP_CONTEXT = ActionView::LookupContext.new(Rails.root.join('app', 'views', 'alchemy'))
    end

    initializer 'alchemy.dependency_tracker' do
      [:erb, :slim, :haml].each do |handler|
        ActionView::DependencyTracker.register_tracker(handler, CacheDigests::TemplateTracker)
      end
    end

    initializer 'alchemy.non_digest_assets' do
      NonStupidDigestAssets.whitelist += [/^tinymce\//]
    end

    # Gutentag downcases all tgas before save.
    # We support having tags with uppercase characters.
    # The Gutentag search is case insensitive.
    initializer 'alchemy.gutentag_normalizer' do
      Gutentag.normaliser = ->(value) { value.to_s }
    end

    config.after_initialize do
      require_relative './userstamp'
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
alchemy_cms-4.6.6 lib/alchemy/engine.rb
alchemy_cms-4.6.5 lib/alchemy/engine.rb
alchemy_cms-4.5.1 lib/alchemy/engine.rb
alchemy_cms-4.4.5 lib/alchemy/engine.rb
alchemy_cms-4.6.4 lib/alchemy/engine.rb
alchemy_cms-4.6.3 lib/alchemy/engine.rb
alchemy_cms-4.6.2 lib/alchemy/engine.rb
alchemy_cms-4.6.1 lib/alchemy/engine.rb
alchemy_cms-4.6.0 lib/alchemy/engine.rb
alchemy_cms-4.5.0 lib/alchemy/engine.rb
alchemy_cms-4.4.4 lib/alchemy/engine.rb
alchemy_cms-4.4.3 lib/alchemy/engine.rb
alchemy_cms-4.4.2 lib/alchemy/engine.rb
alchemy_cms-4.4.1 lib/alchemy/engine.rb
alchemy_cms-4.4.0 lib/alchemy/engine.rb