Class: Memdash::Adapters::Mongoid::Report

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
lib/memdash/adapters/mongoid/report.rb

Class Method Summary collapse

Class Method Details

.past_dayObject



13
14
15
# File 'lib/memdash/adapters/mongoid/report.rb', line 13

def self.past_day
  where(:created_at.gte => Time.current - 1.day)
end