Class: LastSeenActivity

Inherits:
ActiveRecord::Base show all
Defined in:
app/models/last_seen_activity.rb

Class Method Summary collapse

Methods inherited from ActiveRecord::Base

#readonly?

Class Method Details

.currentObject



7
8
9
# File 'app/models/last_seen_activity.rb', line 7

def self.current
  where('updated_at > ?', 5.minutes.ago).order('created_at')
end