Module: IIPolicy::Instrumentation

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/ii_policy/instrumentation.rb

Instance Method Summary collapse

Instance Method Details

#call(action) ⇒ Object



12
13
14
15
16
# File 'lib/ii_policy/instrumentation.rb', line 12

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

#call_all(action) ⇒ Object



7
8
9
10
# File 'lib/ii_policy/instrumentation.rb', line 7

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