RubyMoney/money-rails — pull request #129 by fklingler (2013-09-11 16:31:41+00:00)
Title: Fix mongoization of Money when using infinite_precision.

I ran into a problem using `Money.infinite_precision = true` in conjunction with Mongoid:

```ruby
[36] pry(main)> Money.new(BigDecimal.new('12345.6')).mongoize
=> {:cents=>#, :currency_iso=>"USD"}
```
When saving the model using this kind of money, Moped (or Mongoid) threw an error like this:
```
undefined method `__bson_dump__' for #
```

It was caused by not mongoizing the values (particularly the cents) in the hash returned by `Money#mongoize`.

This PR fixes it and adds tests for it!