1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_controller/metal/rescuable.rb
Joshua Peek 90d7ae23c6 Remove global exception catching from ApplicationController.
It was severely broken since it was ported to NewBase and is causing problems with normal exception catching. A replacement is coming soon.
2009-09-15 10:05:46 -05:00

13 lines
294 B
Ruby

module ActionController #:nodoc:
module Rescue
extend ActiveSupport::Concern
include ActiveSupport::Rescuable
private
def process_action(*args)
super
rescue Exception => exception
rescue_with_handler(exception) || raise(exception)
end
end
end