Sha256: f31bed125ce498bc60696f7396036a8cb519c4e29aa2608605e4c3b1c42e1ee8

Contents?: true

Size: 673 Bytes

Versions: 19

Compression:

Stored size: 673 Bytes

Contents

module Dryml
  class Railtie < Rails::Railtie

    ActiveSupport.on_load(:before_initialize) do |app|
      require 'dryml'
      require 'dryml/template'
      require 'dryml/dryml_generator'
      require 'dryml/railtie/page_tag_resolver'
    end

    ActiveSupport.on_load(:action_controller) do
      require 'dryml/extensions/action_controller/dryml_methods'
    end

    ActiveSupport.on_load(:action_view) do
      ActionView::Template.register_template_handler("dryml", Dryml::Railtie::TemplateHandler)
    end

    initializer 'dryml' do |app|
      app.config.to_prepare do
        Dryml.clear_cache
        Dryml::Taglib.clear_cache
      end
    end

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
dryml-2.0.1 lib/dryml/railtie.rb
dryml-2.0.0 lib/dryml/railtie.rb
dryml-2.0.0.pre10 lib/dryml/railtie.rb
dryml-2.0.0.pre9 lib/dryml/railtie.rb
dryml-2.0.0.pre8 lib/dryml/railtie.rb
dryml-2.0.0.pre7 lib/dryml/railtie.rb
dryml-2.0.0.pre6 lib/dryml/railtie.rb
dryml-2.0.0.pre5 lib/dryml/railtie.rb
dryml-2.0.0.pre4 lib/dryml/railtie.rb
dryml-2.0.0.pre3 lib/dryml/railtie.rb
dryml-2.0.0.pre2 lib/dryml/railtie.rb
dryml-2.0.0.pre1 lib/dryml/railtie.rb
dryml-1.4.0.pre8 lib/dryml/railtie.rb
dryml-1.4.0.pre7 lib/dryml/railtie.rb
dryml-1.4.0.pre6 lib/dryml/railtie.rb
dryml-1.4.0.pre5 lib/dryml/railtie.rb
dryml-1.4.0.pre4 lib/dryml/railtie.rb
dryml-1.4.0.pre3 lib/dryml/railtie.rb
dryml-1.4.0.pre2 lib/dryml/railtie.rb