class
ActiveSupport::ExecutionWrapper
rails latest stable
- Superclass: Object
No documentation available for this class.
Included modules
- ActiveSupport::Callbacks
Constants
CompleteHook = Struct.new(:hook) do # :nodoc:\ndef before(target)\nhook_state = target.send(:hook_state)\nif hook_state.key?(hook)\nhook.complete hook_state[hook]\nend\nend\nalias after before\nend
Null = Object.new # :nodoc:
RunHook = Struct.new(:hook) do # :nodoc:\ndef before(target)\nhook_state = target.send(:hook_state)\nhook_state[hook] = hook.run\nend\nend
Files
- activesupport/lib/active_support/execution_wrapper.rb