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