@@ -13,7 +13,7 module Redmine | |||
|
13 | 13 | has_many :watchers, :as => :watchable, :dependent => :delete_all |
|
14 | 14 | has_many :watcher_users, :through => :watchers, :source => :user, :validate => false |
|
15 | 15 | |
|
16 |
|
|
|
16 | scope :watched_by, lambda { |user_id| | |
|
17 | 17 | { :include => :watchers, |
|
18 | 18 | :conditions => ["#{Watcher.table_name}.user_id = ?", user_id] } |
|
19 | 19 | } |
General Comments 0
You need to be logged in to leave comments.
Login now