Permalink
Browse files

Support nil queries for amount.

  • Loading branch information...
1 parent 355740e commit 812a384850b089ce5fa8019b9055cbc0b49bdf46 @phallguy phallguy committed Jan 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/money/mongoid/3x/money.rb
@@ -14,7 +14,7 @@ def demongoize(value)
end
def evolve(object)
- object.__evolve_to_money__.mongoize
+ object && object.__evolve_to_money__.mongoize
end
def custom_serialization?(operator)

0 comments on commit 812a384

Please sign in to comment.