1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-03-01 15:01:47 +00:00

Removes a call to alias_method_chain.

git-svn-id: http://svn.redmine.org/redmine/trunk@15652 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2016-07-14 06:49:44 +00:00
parent 0e53e20df1
commit 541241a849

View File

@ -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+