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