Money for mongoid

Use the money gem with Mongoid 2.4+, 3 (and 4).

Install

in Gemfile

gem 'money-mongoid'

Bundle via Terminal:

$ bundle

Usage

require 'money-mongoid'

Now also supports MoneyRange with between queries and can even do dynamic currency conversions as part of the query!!! ;)

See specs for usage examples, fx money/mongoid/3x/money_spec.rb

Spec note

Please note that currently the money/mongoid/monetize_spec.rb fails with a number of errors. Please help fix these bugs

However the 2x and 3x specs should pass just fine ;)

Contributing to money-mongoid

== Copyright

Copyright © 2012 Kristian Mandrup. See LICENSE.txt for further details.