改回原来的

This commit is contained in:
yuanke 2016-07-26 10:12:49 +08:00
parent e6e8d73a66
commit 1ae23bafe4
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ module Redmine
def acts_as_watchable(options = {})
return if self.included_modules.include?(Redmine::Acts::Watchable::InstanceMethods)
class_eval do
has_many :watchers, :dependent => :delete_all
has_many :watchers, :as => :watchable, :dependent => :delete_all
has_many :watcher_users, :through => :watchers, :source => :user, :validate => false
scope :watched_by, lambda { |user_id|