summaryrefslogtreecommitdiffstats
path: root/app/models/watcher.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-01 05:07:16 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-01 05:07:16 +0000
commitc343588fa75974199faa5bcf50ae35543cf814ad (patch)
treebc5e2e807a6a47a32b67cfab75421415e0ccef00 /app/models/watcher.rb
parentcd7a5c2f2f48c4b75822041c1d4652fa0ab0f155 (diff)
downloadredmine-c343588fa75974199faa5bcf50ae35543cf814ad.tar.gz
redmine-c343588fa75974199faa5bcf50ae35543cf814ad.zip
fix Watcher#prune_single_user is not private
git-svn-id: http://svn.redmine.org/redmine/trunk@18577 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/watcher.rb')
-rw-r--r--app/models/watcher.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/watcher.rb b/app/models/watcher.rb
index 639e2c988..8ea457060 100644
--- a/app/models/watcher.rb
+++ b/app/models/watcher.rb
@@ -57,8 +57,6 @@ class Watcher < ActiveRecord::Base
errors.add :user_id, :invalid unless user.nil? || user.active?
end
- private
-
def self.prune_single_user(user, options={})
return unless user.is_a?(User)
pruned = 0
@@ -79,4 +77,5 @@ class Watcher < ActiveRecord::Base
end
pruned
end
+ private_class_method :prune_single_user
end