fix Watcher#prune_single_user is not private

git-svn-id: http://svn.redmine.org/redmine/trunk@18577 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2019-10-01 05:07:16 +00:00
parent cd7a5c2f2f
commit c343588fa7
2 changed files with 1 additions and 3 deletions

View File

@@ -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