Sha256: ebea0e5c4b5783bab5e16f29c90ffbaadcf409d1f086cbd7a11a0b5d0dee6a80
Contents?: true
Size: 871 Bytes
Versions: 3
Compression:
Stored size: 871 Bytes
Contents
require 'active_decorator/view_context' require 'rails' module ActiveDecorator class Railtie < ::Rails::Railtie initializer 'active_decorator' do ActiveSupport.on_load(:action_view) do require 'active_decorator/monkey/action_view/partial_renderer' end ActiveSupport.on_load(:action_controller) do require 'active_decorator/monkey/abstract_controller/rendering' require 'active_decorator/monkey/action_controller/base/rescue_from' ActionController::Base.send :include, ActiveDecorator::ViewContext::Filter end ActiveSupport.on_load(:action_mailer) do if ActionMailer::Base.respond_to? :before_action require 'active_decorator/monkey/abstract_controller/rendering' ActionMailer::Base.send :include, ActiveDecorator::ViewContext::Filter end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
active_decorator-0.5.3 | lib/active_decorator/railtie.rb |
active_decorator-0.5.2 | lib/active_decorator/railtie.rb |
active_decorator-0.5.1 | lib/active_decorator/railtie.rb |