Sha256: e1dc0cb6fd1b33c7f45436aa94f4d1d361489f1a80e5727777229fd42557b816

Contents?: true

Size: 423 Bytes

Versions: 1

Compression:

Stored size: 423 Bytes

Contents

# frozen_string_literal: true

module IIPolicy
  module Instrumentation
    extend ActiveSupport::Concern

    def call_all(action)
      ActiveSupport::Notifications.instrument 'start_call_all.ii_policy', policy: self, action: action
      super
    end

    def call(action)
      ActiveSupport::Notifications.instrument 'process_call.ii_policy', policy: self, action: action do
        super
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ii_policy-2.3.0 lib/ii_policy/instrumentation.rb