summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-09 08:35:10 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-09 08:35:10 +0000
commitac72e7a8d51d1b6c678d42774c4ac50d64e39e8d (patch)
treea113ed5bc1a4e6d7d2a040bd2e5bce2be00a43a8 /app
parent907663f83c3b4ce177c1d626cccc05690a821a6b (diff)
downloadredmine-ac72e7a8d51d1b6c678d42774c4ac50d64e39e8d.tar.gz
redmine-ac72e7a8d51d1b6c678d42774c4ac50d64e39e8d.zip
remove unneeded Relation#all from Watcher#prune
git-svn-id: http://svn.redmine.org/redmine/trunk@12572 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/watcher.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/watcher.rb b/app/models/watcher.rb
index 53756603c..104b076fd 100644
--- a/app/models/watcher.rb
+++ b/app/models/watcher.rb
@@ -42,7 +42,7 @@ class Watcher < ActiveRecord::Base
prune_single_user(options[:user], options)
else
pruned = 0
- User.where("id IN (SELECT DISTINCT user_id FROM #{table_name})").all.each do |user|
+ User.where("id IN (SELECT DISTINCT user_id FROM #{table_name})").each do |user|
pruned += prune_single_user(user, options)
end
pruned