Sha256: 38449eef3c26dbd3c70d18cad38c78c83ca3b4b37a109476f7d3bddf7ebd43e6

Contents?: true

Size: 294 Bytes

Versions: 5

Compression:

Stored size: 294 Bytes

Contents

require 'r_decorator/view_context'
require 'rails'

module RDecorator
  class Railtie < ::Rails::Railtie
    initializer 'r_decorator' do
      ActiveSupport.on_load(:action_controller) do
        ActionController::Base.send :include, RDecorator::ViewContext::Filter
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
r_decorator-0.0.5 lib/r_decorator/railtie.rb
r_decorator-0.0.4 lib/r_decorator/railtie.rb
r_decorator-0.0.3 lib/r_decorator/railtie.rb
r_decorator-0.0.2 lib/r_decorator/railtie.rb
r_decorator-0.0.1 lib/r_decorator/railtie.rb