From 3396d5a1c402de36e4c02f8ffca695f50f17a515 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 16 Jul 2016 09:46:51 +0000 Subject: [PATCH] Use head instead of render :nothing => true. git-svn-id: http://svn.redmine.org/redmine/trunk@15671 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/watchers_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/watchers_controller.rb b/app/controllers/watchers_controller.rb index 7ea56999b..eda84a82e 100644 --- a/app/controllers/watchers_controller.rb +++ b/app/controllers/watchers_controller.rb @@ -59,7 +59,7 @@ class WatchersController < ApplicationController @users = User.active.visible.where(:id => user_ids).to_a end if @users.blank? - render :nothing => true + head 200 end end -- 2.39.5