timcowlishaw/acts_as_money — pull request #2 by ylansegal (2012-02-03 02:44:08+00:00)
Title: Rails 3.2 fixes

Tim,

I have a rails app that uses acts_as_money extensively and ran into some problems trying to upgrade it from rails 3.1 to 3.2. Because of some changes to rails itself, acts_as_money no longer worked when not using a currency column in the database.

I don't have much experience with writing gems, so I did the best I could. I added tests for my use cases, but I am not sure that the change to Gemfile, Gemfile.lock and the gemspec are correct, so cherry-pick around them if you think it's pertinent.

Of course, all tests are now green for me. I hope you find this useful.