0.01
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Makes it easy to use money with mongoid
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.1.0
>= 1.8.4
>= 3.12
>= 2.10
>= 0.5

Runtime

 Project Readme

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

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
  • Fork the project.
  • Start a feature/bugfix branch.
  • Commit and push until you are happy with your contribution.
  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

== Copyright

Copyright (c) 2012 Kristian Mandrup. See LICENSE.txt for further details.