Sha256: 91743ba8012ba3b857933b99d0bfa11d94e0404c423b9a23afd67ce496b82cfc

Contents?: true

Size: 272 Bytes

Versions: 4

Compression:

Stored size: 272 Bytes

Contents

require "easy_presenter/filter"
require "rails"

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
easy_presenter-1.1.1 lib/easy_presenter/railtie.rb
easy_presenter-1.1.0 lib/easy_presenter/railtie.rb
easy_presenter-1.0.1 lib/easy_presenter/railtie.rb
easy_presenter-1.0.0 lib/easy_presenter/railtie.rb