From c343588fa75974199faa5bcf50ae35543cf814ad Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 1 Oct 2019 05:07:16 +0000 Subject: fix Watcher#prune_single_user is not private git-svn-id: http://svn.redmine.org/redmine/trunk@18577 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/watcher.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/models/watcher.rb') 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 -- cgit v1.2.3