dusty/matic_timestamp
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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
About
Plugin for Mongomatic to automatically add created_at and updated_at
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published