method

before_reset

rails latest stable - Class: ActiveSupport::CurrentAttributes
before_reset(*methods, &block)
public

Calls this callback before #reset is called on the instance. Used for resetting external collaborators that depend on current values.