Module: Mongoid::CollectionSnapshot::ClassMethods
- Defined in:
- lib/mongoid_collection_snapshot.rb
Instance Method Summary collapse
Instance Method Details
#latest ⇒ Object
24 25 26 |
# File 'lib/mongoid_collection_snapshot.rb', line 24 def latest order_by([[:created_at, :desc]]).first end |