Sha256: aee01ab9cd92cc7ca81a51ec7fb7c88fa2d9b58452e4afd62c9c04834fa5ca68

Contents?: true

Size: 441 Bytes

Versions: 20

Compression:

Stored size: 441 Bytes

Contents

# frozen_string_literal: true

module Audited
  class Railtie < Rails::Railtie
    initializer "audited.sweeper" do
      ActiveSupport.on_load(:action_controller) do
        if defined?(ActionController::Base)
          ActionController::Base.around_action Audited::Sweeper.new
        end
        if defined?(ActionController::API)
          ActionController::API.around_action Audited::Sweeper.new
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
audited-5.8.0 lib/audited/railtie.rb
audited-5.7.0 lib/audited/railtie.rb
audited-5.6.0 lib/audited/railtie.rb
audited-5.5.1.pre lib/audited/railtie.rb
audited-5.5.0 lib/audited/railtie.rb
audited-5.4.3 lib/audited/railtie.rb
audited-5.4.2 lib/audited/railtie.rb
audited-5.4.1 lib/audited/railtie.rb
audited-5.4.0 lib/audited/railtie.rb
audited-5.3.3 lib/audited/railtie.rb
audited-5.3.2 lib/audited/railtie.rb
audited-5.3.1 lib/audited/railtie.rb
audited-5.3.0 lib/audited/railtie.rb
audited-5.2.0 lib/audited/railtie.rb
audited-5.1.0 lib/audited/railtie.rb
velocity_audited-5.1.4 lib/audited/railtie.rb
velocity_audited-5.1.3 lib/audited/railtie.rb
audited-5.0.2 lib/audited/railtie.rb
audited-5.0.1 lib/audited/railtie.rb
audited-5.0.0 lib/audited/railtie.rb