aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_controller/metal/rescue.rb
blob: bbca1b21796aad6385dd9da4ae9f0141f0773acd (plain) (tree)
1
2
3
4
5
6
7
8
9
                                
               
                                 
                                    
 
           
                               

                                   
                                                          
         

     
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