From 81d64a6d6a730517e36e32d58acce8f9977943f3 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Sun, 1 Feb 2015 22:39:31 +0100 Subject: [PATCH] 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) --- .../webapp/WEB-INF/app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5