Sha256: e29addbf1c0756704be4dd5bd52f8ccdea866f014153f1711de628804ff03489

Contents?: true

Size: 317 Bytes

Versions: 3

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true

module IIPolicy
  class Railtie < Rails::Railtie
    ActiveSupport.on_load :action_controller do
      ActionController::Base.send :include, IIPolicy::Controller
    end

    ActiveSupport.on_load :action_view do
      ActionView::Base.send :include, IIPolicy::Helper
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ii_policy-2.0.0 lib/ii_policy/railtie.rb
ii_policy-1.1.0 lib/ii_policy/railtie.rb
ii_policy-1.0.0 lib/ii_policy/railtie.rb