kristianmandrup / money-mongoid

Standalone Mongoid support and integration for the Money gem
MIT License
9 stars 6 forks source link

Support for demongoizing nil values #5

Closed phallguy closed 12 years ago

phallguy commented 12 years ago

In my particular case I'm trying to validate the presence of a price field and the money.rb demongoize method assumes value is present. Just added a check for nil.

Tried to get the tests running locally but was having some odd issues with the 2.x spec.

kristianmandrup commented 12 years ago

thanks :)