]> source.dussan.org Git - redmine.git/commitdiff
Removes a call to alias_method_chain.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 14 Jul 2016 06:49:44 +0000 (06:49 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 14 Jul 2016 06:49:44 +0000 (06:49 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@15652 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb

index 4bbba854a7ef9aacf27d6ede3e800d81d21f29e7..2bddd64b724db8b16cda92bf467a493d43e62232 100644 (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+