RubyMoney/money-rails — pull request #15 by tfwright (2012-06-12 18:44:56+00:00)
Title: Allow nil

This added support for `composed_of`'s `allow_nil` option.

There is a bit of an issue with blank values. The way `allow_nil` worked is simply to skip conversion for nil values, but blank values still get passed in and converted to money, thus an check for blanks is required. Returning nil in the converter currently chokes `composed_of` but [a patch](https://github.com/senny/rails/commit/fa5f037551dfb860bf6359acf901915856646fea#activerecord/lib/active_record/aggregations.rb) has been applied to rails that fixes this.