Sha256: 8c4959f837eb9185795a25c064875a3b91450115165848b0f2d9728e1dc6f736

Contents?: true

Size: 589 Bytes

Versions: 36

Compression:

Stored size: 589 Bytes

Contents

require 'curly/dependency_tracker'

module Curly
  class Railtie < Rails::Railtie
    config.app_generators.template_engine :curly

    initializer 'curly.initialize_template_handler' do
      ActionView::Template.register_template_handler :curly, Curly::TemplateHandler

      if defined?(CacheDigests::DependencyTracker)
        CacheDigests::DependencyTracker.register_tracker :curly, Curly::DependencyTracker
      end

      if defined?(ActionView::DependencyTracker)
        ActionView::DependencyTracker.register_tracker :curly, Curly::DependencyTracker
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
curly-templates-3.4.0 lib/curly/railtie.rb
curly-templates-3.3.0 lib/curly/railtie.rb
curly-templates-3.2.0 lib/curly/railtie.rb
curly-templates-3.1.0 lib/curly/railtie.rb
curly-templates-3.0.0 lib/curly/railtie.rb
curly-templates-2.6.5 lib/curly/railtie.rb
curly-templates-2.6.4 lib/curly/railtie.rb
curly-templates-2.6.3 lib/curly/railtie.rb
curly-templates-2.6.2 lib/curly/railtie.rb
curly-templates-2.6.1 lib/curly/railtie.rb
curly-templates-2.6.0 lib/curly/railtie.rb
curly-templates-2.5.0 lib/curly/railtie.rb
curly-templates-2.4.1 lib/curly/railtie.rb
curly-templates-2.4.0 lib/curly/railtie.rb
curly-templates-2.3.2 lib/curly/railtie.rb
curly-templates-2.3.1 lib/curly/railtie.rb
curly-templates-2.3.0 lib/curly/railtie.rb
curly-templates-2.2.0 lib/curly/railtie.rb
curly-templates-2.1.1 lib/curly/railtie.rb
curly-templates-2.1.0 lib/curly/railtie.rb