mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
90d7ae23c6
It was severely broken since it was ported to NewBase and is causing problems with normal exception catching. A replacement is coming soon.
13 lines
294 B
Ruby
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
|