Mm-paranoid is a project mainly written in Ruby, based on the MIT license.
Tiny plugin for MongoMapper to set deleted_at instead of actually deleting the record.
= MongoMapper::Plugins::Paranoid
Tiny plugin for MongoMapper to set deleted_at instead of actually deleting the record
Note, this doesn't change finders etc... I leave that as an implementation detail of the app.
== Usage
Either load it into all models, or individual models:
# add to all models
MongoMapper::Document.plugin(MongoMapper::Plugins::Paranoid)
# add to a specific model
plugin MongoMapper::Plugins::Paranoid
== Note on Patches/Pull Requests
== Install
$ gem install mm-paranoid
== Copyright
See LICENSE for details.