mongoid money field
This is a super simple gem to use RubyMoney money type columns with mongoid
A simple gem that creates a Money datatype using RubyMoney for Mongoid.
Inspired by gist.github.com/840500
Include the gem in your Gemfile
class DummyMoney include Mongoid::Document include Mongoid::MoneyField field :description money_field :price end
All Money values are converted and stored in mongo as cents and currency in two separate fields.
Copyright © 2012 glebtv. MIT License.