Method: ActiveSupport::CurrentAttributes.resets

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

.resets(*methods, &block) ⇒ Object Also known as: after_reset

Calls this callback after #reset is called on the instance. Used for resetting external collaborators, like Time.zone.



149
150
151
# File 'activesupport/lib/active_support/current_attributes.rb', line 149

def resets(*methods, &block)
  set_callback :reset, :after, *methods, &block
end