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