This commit is contained in:
yanxd 2014-05-27 17:13:56 +08:00
parent 06a775e3f9
commit 200c052bb4
1 changed files with 1 additions and 1 deletions

View File

@ -565,7 +565,7 @@ class UsersController < ApplicationController
end
def watch_projects
@watch_projects = Project.joins(:watchers).where("project_type <>? and watchable_type = ? and user_id = ?", '1','Project', @user.id)
@watch_projects = Project.joins(:watchers).where("project_type <>? and watchable_type = ? and watchers.user_id = ?", '1','Project', @user.id)
@state = 1
respond_to do |format|
format.html {