Commit 7e9a030e authored by jplang's avatar jplang

Removes a call to alias_method_chain.

git-svn-id: https://svn.redmine.org/redmine/trunk@15652 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent e31b1a4a
......@@ -20,7 +20,6 @@ module Redmine
attr_protected :watcher_ids, :watcher_user_ids
end
send :include, Redmine::Acts::Watchable::InstanceMethods
alias_method_chain :watcher_user_ids=, :uniq_ids
end
end
......@@ -59,11 +58,11 @@ module Redmine
end
# Overrides watcher_user_ids= to make user_ids uniq
def watcher_user_ids_with_uniq_ids=(user_ids)
def watcher_user_ids=(user_ids)
if user_ids.is_a?(Array)
user_ids = user_ids.uniq
end
send :watcher_user_ids_without_uniq_ids=, user_ids
super user_ids
end
# Returns true if object is watched by +user+
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment