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