From 6d6ea928c83b0d3ac92853e313f0859accf6e355 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 21 May 2019 23:53:10 +0000 Subject: Custom Exception classes should inherit StandardError instead of Exception (#31387). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18187 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/application_controller.rb') diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 0aaf54b66..66d9b6884 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -20,7 +20,7 @@ require 'uri' require 'cgi' -class Unauthorized < Exception; end +class Unauthorized < StandardError; end class ApplicationController < ActionController::Base include Redmine::I18n -- cgit v1.2.3