Method: ActiveSupport::ExecutionWrapper::RunHook#before

Defined in:
activesupport/lib/active_support/execution_wrapper.rb

#before(target) ⇒ Object



26
27
28
29
# File 'activesupport/lib/active_support/execution_wrapper.rb', line 26

def before(target)
  hook_state = target.send(:hook_state)
  hook_state[hook] = hook.run
end