change 'online' time from 5 to 2 mins
This commit is contained in:
@@ -40,7 +40,7 @@ class User < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def online?
|
def online?
|
||||||
last_seen && last_seen > 5.minutes.ago
|
last_seen && last_seen > 2.minutes.ago
|
||||||
end
|
end
|
||||||
|
|
||||||
#roles
|
#roles
|
||||||
|
|||||||
Reference in New Issue
Block a user