class ActiveSupport::CurrentAttributes

def resets(*methods, &block)

Calls this callback after #reset is called on the instance. Used for resetting external collaborators, like Time.zone.
def resets(*methods, &block)
  set_callback :reset, :after, *methods, &block
end