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+