Module: ActionTracer::MonkeyPatches::ActiveSupport::Callbacks::CallTemplate::MethodCall

Defined in:
lib/action_tracer/monkey_patches/active_support/callbacks.rb

Instance Method Summary collapse

Instance Method Details

#expandObject



10
11
12
# File 'lib/action_tracer/monkey_patches/active_support/callbacks.rb', line 10

def expand(*)
  super.tap { ActionTracer.applied_filters << @method_name }
end

#inverted_lambdaObject



18
19
20
# File 'lib/action_tracer/monkey_patches/active_support/callbacks.rb', line 18

def inverted_lambda
  super >> proc { |result| ActionTracer.applied_filters << @method_name; result }
end

#make_lambdaObject



14
15
16
# File 'lib/action_tracer/monkey_patches/active_support/callbacks.rb', line 14

def make_lambda
  super >> proc { |result| ActionTracer.applied_filters << @method_name; result }
end