@@ -20,7 +20,6 module Redmine | |||
|
20 | 20 | attr_protected :watcher_ids, :watcher_user_ids |
|
21 | 21 | end |
|
22 | 22 | send :include, Redmine::Acts::Watchable::InstanceMethods |
|
23 | alias_method_chain :watcher_user_ids=, :uniq_ids | |
|
24 | 23 | end |
|
25 | 24 | end |
|
26 | 25 | |
@@ -59,11 +58,11 module Redmine | |||
|
59 | 58 | end |
|
60 | 59 | |
|
61 | 60 | # Overrides watcher_user_ids= to make user_ids uniq |
|
62 |
def watcher_user_ids |
|
|
61 | def watcher_user_ids=(user_ids) | |
|
63 | 62 | if user_ids.is_a?(Array) |
|
64 | 63 | user_ids = user_ids.uniq |
|
65 | 64 | end |
|
66 | send :watcher_user_ids_without_uniq_ids=, user_ids | |
|
65 | super user_ids | |
|
67 | 66 | end |
|
68 | 67 | |
|
69 | 68 | # Returns true if object is watched by +user+ |
General Comments 0
You need to be logged in to leave comments.
Login now