Sha256: 9c3cdbacafc944f1c96dd6f20dd16b818f577f09a72a43ea164e7d9bfdc32cb5

Contents?: true

Size: 468 Bytes

Versions: 1

Compression:

Stored size: 468 Bytes

Contents

require 'rails'

module ActiveDecorator
  class Railtie < ::Rails::Railtie
    initializer 'active_decorator' do
      ActiveSupport.on_load(:action_view) do
        require 'monkey/action_view/partial_renderer'
      end
      ActiveSupport.on_load(:action_controller) do
        require 'monkey/abstract_controller/rendering'
      end
      ActiveSupport.on_load(:action_mailer) do
        require 'monkey/abstract_controller/rendering'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_decorator-0.1.0 lib/active_decorator/railtie.rb