Skip to content
  • Rosa Gutierrez's avatar
    2ce8455c
    Support before_reset callback in CurrentAttributes · 2ce8455c
    Rosa Gutierrez authored
    This is useful when we need to do some work associated to `Current.reset`
    but that work depends on the values of the current attributes themselves.
    This cannot be done in the supported `resets` callback because when the
    block is executed, CurrentAttributes's instance has already been reset.
    
    For symmetry, `after_reset` is defined as alias of `resets`.
    2ce8455c
    Support before_reset callback in CurrentAttributes
    Rosa Gutierrez authored
    This is useful when we need to do some work associated to `Current.reset`
    but that work depends on the values of the current attributes themselves.
    This cannot be done in the supported `resets` callback because when the
    block is executed, CurrentAttributes's instance has already been reset.
    
    For symmetry, `after_reset` is defined as alias of `resets`.
Loading