Mm-stripper is a project mainly written in Ruby, based on the MIT license.
Tiny plugin for MongoMapper to strip whitespace from strings before validation.
= MongoMapper::Plugins::Stripper
Tiny plugin for MongoMapper to strip whitespace from strings before validation. If the value is blank, it sets it to nil
== Usage
Either load it into all models, or individual models:
# add to all models
MongoMapper::Document.plugin(MongoMapper::Plugins::Stripper)
# add to a specific model
plugin MongoMapper::Plugins::Stripper
== Note on Patches/Pull Requests
== Install
$ gem install mm-stripper
== Copyright
See LICENSE for details.