0.0
No commit activity in last 3 years
No release in over 3 years
Plugin for Mongomatic to automatically add created_at and updated_at
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme
Mongomatic::Plugins::Timestamps

  matic_timestamp is a plugin for Mongomatic to automatically add created_at and updated_at

Usage

  require 'matic_timestamp'

  class Monkey < Mongomatic::Base
    include Mongomatic::Plugins::Timestamps
  end

  m = Monkey.new
  m.insert
  Monkey.find_one.created_at # Time object
  m.update
  Monkey.find_one.updated_at # More recent Time object