From: Simon Brandhof Date: Sun, 1 Feb 2015 21:39:31 +0000 (+0100) Subject: Fix ruby method not_found in order to accept optional message X-Git-Tag: 5.1-RC1~476 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=81d64a6d6a730517e36e32d58acce8f9977943f3;p=sonarqube.git Fix ruby method not_found in order to accept optional message It fixes this error: wrong number of arguments calling `not_found` (0 for 1) --- diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/application_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/application_controller.rb index 8037f966d0c..442f7ab237c 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/application_controller.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/application_controller.rb @@ -134,7 +134,7 @@ class ApplicationController < ActionController::Base end # The resource requested, such as a project, a dashboard or a filter, does not exist - def not_found(message) + def not_found(message=nil) raise Errors::NotFound.new(message) end