summaryrefslogtreecommitdiffstats
path: root/app/controllers/watchers_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-16 09:46:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-16 09:46:51 +0000
commit3396d5a1c402de36e4c02f8ffca695f50f17a515 (patch)
treeafbd9562aea9eccf2cdf24a06328453d63b04cad /app/controllers/watchers_controller.rb
parent17aa2f68c260ece0bbfa10ebfeb7c659b3585505 (diff)
downloadredmine-3396d5a1c402de36e4c02f8ffca695f50f17a515.tar.gz
redmine-3396d5a1c402de36e4c02f8ffca695f50f17a515.zip
Use head instead of render :nothing => true.
git-svn-id: http://svn.redmine.org/redmine/trunk@15671 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/watchers_controller.rb')
-rw-r--r--app/controllers/watchers_controller.rb2
1 files changed, 1 insertions, 1 deletions
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