public
Fork of rails/rails
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/jeremy/rails.git
Search Repo:
Simpler rescue_action condition
jeremy (author)
Sat May 10 08:58:30 -0700 2008
commit  cde6a259bf46cdaf1f2fe5fdeb84478ca8fc3046
tree    fc62831dc4c084c816ace05d2ddd28b811de0f79
parent  f2e4bf218f95ab279e1a1527c37115faf65ac283
...
199
200
201
202
203
204
205
 
 
206
207
208
...
199
200
201
 
 
 
 
202
203
204
205
206
0
@@ -199,10 +199,8 @@
0
     private
0
       def perform_action_with_rescue #:nodoc:
0
         perform_action_without_rescue
0
- rescue Exception => exception # errors from action performed
0
- return if rescue_action_with_handler(exception)
0
-
0
- rescue_action(exception)
0
+ rescue Exception => exception
0
+ rescue_action_with_handler(exception) || rescue_action(exception)
0
       end
0
 
0
       def rescues_path(template_name)

Comments

    No one has commented yet.