Project

General

Profile

Defect #9466 » watchers.patch

Sergey Besedin, 2011-10-24 19:20

View differences:

vendor/plugins/acts_as_watchable/lib/acts_as_watchable.rb Thu Sep 15 12:57:16 2011 +0400 → vendor/plugins/acts_as_watchable/lib/acts_as_watchable.rb Mon Oct 24 21:06:14 2011 +0400
32 32
        # Returns an array of users that are proposed as watchers
33 33
        def addable_watcher_users
34 34
          users = self.project.users.sort - self.watcher_users
35
          if respond_to?(:visible?)
36
            users.reject! {|user| !visible?(user)}
37
          end
38
          users
39 35
        end
40 36
        
41 37
        # Adds user as a watcher
(3-3/3)