plugins/adva_url_history/lib/url_history/tracking.rb
def handler_for_rescue_except_url_history(exception)
        _, rescuer = Array(self.class.rescue_handlers).reverse.detect do |klass_name, handler|
          unless handler == :url_history_page_not_found
            klass = self.class.const_get(klass_name) rescue nil
            klass ||= klass_name.constantize rescue nil
            exception.is_a?(klass) if klass
          end
        end

        case rescuer
        when Symbol
          method(rescuer)
        when Proc
          rescuer.bind(self.class)
        end
      end
# ugh. rescue_from does not allow chaining handlers. so instead of just
# re-raising the exception we need to reimplement the logic, look up the
# next handler and call it.
ugh. rescue_from does not allow chaining handlers. so instead of just
re-raising the exception we need to reimplement the logic, look up the
next handler and call it.
ugh . rescue_from does not allow chaining handlers . so instead of just re - raising the exception we need to reimplement the logic look up the next handler and call it .
def handler_for_rescue_except_url_history(exception)
        _, rescuer = Array(self.class.rescue_handlers).reverse.detect do |klass_name, handler|
          unless handler == :url_history_page_not_found
            klass = self.class.const_get(klass_name) rescue nil
            klass ||= klass_name.constantize rescue nil
            exception.is_a?(klass) if klass
          end
        end
        case rescuer
        when Symbol
          method(rescuer)
        when Proc
          rescuer.bind(self.class)
        end
      end
def handler_for_rescue_except_url_history ( exception ) _ , rescuer = Array ( self . class . rescue_handlers ) . reverse . detect do | klass_name , handler | unless handler == :url_history_page_not_found klass = self . class . const_get ( klass_name ) rescue nil klass ||= klass_name . constantize rescue nil exception . is_a? ( klass ) if klass end end case rescuer when Symbol method ( rescuer ) when Proc rescuer . bind ( self . class ) end end
ugh.
ugh .
exception