##// END OF EJS Templates
Removes a call to alias_method_chain....
Jean-Philippe Lang -
r15270:541241a84994
parent child
Show More
@@ -20,7 +20,6 module Redmine
20 attr_protected :watcher_ids, :watcher_user_ids
20 attr_protected :watcher_ids, :watcher_user_ids
21 end
21 end
22 send :include, Redmine::Acts::Watchable::InstanceMethods
22 send :include, Redmine::Acts::Watchable::InstanceMethods
23 alias_method_chain :watcher_user_ids=, :uniq_ids
24 end
23 end
25 end
24 end
26
25
@@ -59,11 +58,11 module Redmine
59 end
58 end
60
59
61 # Overrides watcher_user_ids= to make user_ids uniq
60 # Overrides watcher_user_ids= to make user_ids uniq
62 def watcher_user_ids_with_uniq_ids=(user_ids)
61 def watcher_user_ids=(user_ids)
63 if user_ids.is_a?(Array)
62 if user_ids.is_a?(Array)
64 user_ids = user_ids.uniq
63 user_ids = user_ids.uniq
65 end
64 end
66 send :watcher_user_ids_without_uniq_ids=, user_ids
65 super user_ids
67 end
66 end
68
67
69 # Returns true if object is watched by +user+
68 # Returns true if object is watched by +user+
General Comments 0
You need to be logged in to leave comments. Login now