Sha256: d92d3fc08f88083e05f470697bfef8d28fb84db59435b43921287a8d2c331dbb

Contents?: true

Size: 625 Bytes

Versions: 26

Compression:

Stored size: 625 Bytes

Contents

module Dryml
  class Railtie < Rails::Railtie

    ActiveSupport.on_load(:before_initialize) do |app|
      require 'dryml'
      require 'dryml/template'
      require 'dryml/dryml_generator'
    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

26 entries across 26 versions & 1 rubygems

Version Path
dryml-1.3.3 lib/dryml/railtie.rb
dryml-1.3.2 lib/dryml/railtie.rb
dryml-1.3.1 lib/dryml/railtie.rb
dryml-1.3.0 lib/dryml/railtie.rb
dryml-1.3.0.RC4 lib/dryml/railtie.rb
dryml-1.3.0.RC3 lib/dryml/railtie.rb
dryml-1.3.0.RC2 lib/dryml/railtie.rb
dryml-1.3.0.RC1 lib/dryml/railtie.rb
dryml-1.3.0.RC lib/dryml/railtie.rb
dryml-1.3.0.pre31 lib/dryml/railtie.rb
dryml-1.3.0.pre29 lib/dryml/railtie.rb
dryml-1.3.0.pre28 lib/dryml/railtie.rb
dryml-1.3.0.pre27 lib/dryml/railtie.rb
dryml-1.3.0.pre26 lib/dryml/railtie.rb
dryml-1.3.0.pre25 lib/dryml/railtie.rb
dryml-1.3.0.pre24 lib/dryml/railtie.rb
dryml-1.3.0.pre23 lib/dryml/railtie.rb
dryml-1.3.0.pre22 lib/dryml/railtie.rb
dryml-1.3.0.pre21 lib/dryml/railtie.rb
dryml-1.3.0.pre20 lib/dryml/railtie.rb