oops
This commit is contained in:
@@ -41,7 +41,7 @@ class User < ActiveRecord::Base
|
|||||||
|
|
||||||
def self.seen(time)
|
def self.seen(time)
|
||||||
# when you change this, change footer.html.erb as well?
|
# 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
|
end
|
||||||
|
|
||||||
def online?
|
def online?
|
||||||
|
|||||||
Reference in New Issue
Block a user