fix next sql error
This commit is contained in:
parent
4b25545e82
commit
36c9b9ecdd
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ class StatusMessage < Post
|
|||
}
|
||||
|
||||
scope :commented_by, lambda { |person|
|
||||
select('DISTINCT "posts".*').joins(:comments).where(:comments => {:author_id => person.id})
|
||||
select('DISTINCT posts.*').joins(:comments).where(:comments => {:author_id => person.id})
|
||||
}
|
||||
|
||||
scope :liked_by, lambda { |person|
|
||||
|
|
|
|||
Loading…
Reference in a new issue