give correct scope in order clause

This commit is contained in:
Jonne Hass 2011-11-06 09:26:14 +01:00
parent ca3c5fc6e8
commit 13297eadc8

View file

@ -178,7 +178,7 @@ class StatusMessage < Post
private
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