]> source.dussan.org Git - sonarqube.git/commitdiff
Fix ruby method not_found in order to accept optional message
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Sun, 1 Feb 2015 21:39:31 +0000 (22:39 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Sun, 1 Feb 2015 21:39:31 +0000 (22:39 +0100)
It fixes this error: wrong number of arguments calling `not_found` (0 for 1)

server/sonar-web/src/main/webapp/WEB-INF/app/controllers/application_controller.rb

index 8037f966d0ce2ddd3a88e2597ef3ef6f6eae7f2f..442f7ab237c327ae603b0dbce9a196455f32b800 100644 (file)
@@ -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