rails/rails — pull request #4866 by bogdan (2012-02-03 14:34:44+00:00)
Title: AS::Callbacks#define_callbacks: add :terminate_after_callbacks option

This commit remove a hacky usage of Callbacks when `"!halted"` is passed as to `:if` for after callbacks.
`halted` is an internal local variable and it should not be used from outside.

This commits adds `:terminate_after_callbacks` option instead:

```
# * :terminate_after_callbacks - Determines if after callbacks should be terminated
# by the :terminator option. By default after callbacks executed no matter
# if callback chain was terminated or not.
# Option makes sence only when :terminator option is specified.
#
```