Sha256: 84f6f6edd3feb67650511f65084a86a760c5aff4cc94abe4005f7c87ffef4a81

Contents?: true

Size: 403 Bytes

Versions: 5

Compression:

Stored size: 403 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

    ActiveSupport::Reloader.to_prepare do
      IIPolicy::Lookup.cache.clear
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ii_policy-2.3.0 lib/ii_policy/railtie.rb
ii_policy-2.2.2 lib/ii_policy/railtie.rb
ii_policy-2.2.1 lib/ii_policy/railtie.rb
ii_policy-2.2.0 lib/ii_policy/railtie.rb
ii_policy-2.1.0 lib/ii_policy/railtie.rb