diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2011-01-12 22:37:34 -0500 |
---|---|---|
committer | Neeraj Singh <neerajdotname@gmail.com> | 2011-01-12 22:37:34 -0500 |
commit | b461fe76f47dc34a6a958d1761ac0332421627fd (patch) | |
tree | e75abd09989d5bfdbe1556ba793e25160375b6fe /activesupport | |
parent | 726a66a7a46c1274a3a1ff45b589952252749ebe (diff) | |
download | rails-b461fe76f47dc34a6a958d1761ac0332421627fd.tar.gz rails-b461fe76f47dc34a6a958d1761ac0332421627fd.tar.bz2 rails-b461fe76f47dc34a6a958d1761ac0332421627fd.zip |
editing comments regarding rescuable optoin in AS callbacks
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/callbacks.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index f79363d953..6e284182b2 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -549,8 +549,9 @@ module ActiveSupport # halts the chain. # # * <tt>:rescuable</tt> - By default, after filters are not executed if - # the given block or a before filter raises an error. Set this option to - # true to change this behavior. + # the given block or a before filter raises an error. By setting this option + # to <tt>true</tt> exception raised by given block is stored and after + # executing all the after callbacks the stored exception is raised. # # * <tt>:scope</tt> - Indicates which methods should be executed when an object # is used as a callback. |