Fix for Rails 4.2

As instructed by
https://github.com/RubyMoney/money-rails/issues/235#issuecomment-61981891
Merge pull request #236 from mparramont/master

Fix for Rails 4.2