mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user