give correct scope in order clause
This commit is contained in:
parent
ca3c5fc6e8
commit
13297eadc8
1 changed files with 1 additions and 1 deletions
|
|
@ -178,7 +178,7 @@ class StatusMessage < Post
|
||||||
|
|
||||||
private
|
private
|
||||||
def self.tag_stream(tag_ids)
|
def self.tag_stream(tag_ids)
|
||||||
joins(:tags).where(:tags => {:id => tag_ids}).order("created_at")
|
joins(:tags).where(:tags => {:id => tag_ids}).order("posts.created_at")
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue