summaryrefslogtreecommitdiffstats
path: root/lib/plugins/acts_as_watchable
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-14 06:49:44 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-14 06:49:44 +0000
commit541241a849944a06197c1294cbca1123a49521e3 (patch)
treee0e0fa32be3e1051de8a63795317fdb369e2813b /lib/plugins/acts_as_watchable
parent0e53e20df15014da6c91dccff349f3db0ec163e0 (diff)
downloadredmine-541241a849944a06197c1294cbca1123a49521e3.tar.gz
redmine-541241a849944a06197c1294cbca1123a49521e3.zip
Removes a call to alias_method_chain.
git-svn-id: http://svn.redmine.org/redmine/trunk@15652 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/plugins/acts_as_watchable')
-rw-r--r--lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb b/lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb
index 4bbba854a..2bddd64b7 100644
--- a/lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb
+++ b/lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb
@@ -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+