This commit is contained in:
jomo
2014-06-29 06:50:47 +02:00
parent b276d93822
commit 7b2e62a966

View File

@@ -41,7 +41,7 @@ class User < ActiveRecord::Base
def self.seen(time)
# when you change this, change footer.html.erb as well?
User.where("last_seen >= ?", time.ago).order("last_seen, desc")
User.where("last_seen >= ?", time.ago).order("last_seen desc")
end
def online?