Sha256: 178fa426158aa90dfb377bf758b2b5f6ff8f057e0ea0e07738b9d5bb9d5ea9e5

Contents?: true

Size: 795 Bytes

Versions: 14

Compression:

Stored size: 795 Bytes

Contents

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

    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

14 entries across 14 versions & 1 rubygems

Version Path
alchemy_cms-4.3.2 lib/alchemy/engine.rb
alchemy_cms-4.2.4 lib/alchemy/engine.rb
alchemy_cms-4.3.1 lib/alchemy/engine.rb
alchemy_cms-4.2.3 lib/alchemy/engine.rb
alchemy_cms-4.3.0 lib/alchemy/engine.rb
alchemy_cms-4.2.2 lib/alchemy/engine.rb
alchemy_cms-4.1.2 lib/alchemy/engine.rb
alchemy_cms-4.1.1 lib/alchemy/engine.rb
alchemy_cms-4.2.1 lib/alchemy/engine.rb
alchemy_cms-4.2.0 lib/alchemy/engine.rb
alchemy_cms-4.2.0.rc1 lib/alchemy/engine.rb
alchemy_cms-4.1.0 lib/alchemy/engine.rb
alchemy_cms-4.1.0.rc1 lib/alchemy/engine.rb
alchemy_cms-4.1.0.beta lib/alchemy/engine.rb