{"action":"created","issue":{"url":"https://api.github.com/repos/RubyMoney/money-rails/issues/293","labels_url":"https://api.github.com/repos/RubyMoney/money-rails/issues/293/labels{/name}","comments_url":"https://api.github.com/repos/RubyMoney/money-rails/issues/293/comments","events_url":"https://api.github.com/repos/RubyMoney/money-rails/issues/293/events","html_url":"https://github.com/RubyMoney/money-rails/issues/293","id":58614067,"number":293,"title":"Not a number validation error","user":{"login":"bismark64","id":3027525,"avatar_url":"https://avatars.githubusercontent.com/u/3027525?v=3","gravatar_id":"","url":"https://api.github.com/users/bismark64","html_url":"https://github.com/bismark64","followers_url":"https://api.github.com/users/bismark64/followers","following_url":"https://api.github.com/users/bismark64/following{/other_user}","gists_url":"https://api.github.com/users/bismark64/gists{/gist_id}","starred_url":"https://api.github.com/users/bismark64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bismark64/subscriptions","organizations_url":"https://api.github.com/users/bismark64/orgs","repos_url":"https://api.github.com/users/bismark64/repos","events_url":"https://api.github.com/users/bismark64/events{/privacy}","received_events_url":"https://api.github.com/users/bismark64/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-23T16:54:25Z","updated_at":"2015-07-15T15:20:14Z","closed_at":null,"body":"Hi guys, having a validation error when trying to save monetized fields.\r\nI'm using money-rails 1.3.0 and money 6.5.1 and this is my model extract:\r\n\r\n```ruby \r\nclass Coupon < ActiveRecord::Base\r\n  monetize :unit_donation_cents\r\n  monetize :total_donation_cents\r\nend\r\n```\r\n\r\nWhen trying to save this coupon object:\r\n```bash\r\n<Coupon id: nil, title: \"Test Coupon\", created_at: nil, updated_at: nil, unit_donation_cents: 0, unit_donation_currency: \"USD\", total_donation_cents: 0, total_donation_currency: \"USD\">\r\n```\r\nI get this:\r\n\r\n```bash\r\n{:unit_donation=>[\"is not a number\"], :total_donation=>[\"is not a number\"]}\r\n```\r\nThis was working with a previous version of both money and money-rails gems.\r\nWhat am I missing?\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/RubyMoney/money-rails/issues/comments/121650014","html_url":"https://github.com/RubyMoney/money-rails/issues/293#issuecomment-121650014","issue_url":"https://api.github.com/repos/RubyMoney/money-rails/issues/293","id":121650014,"user":{"login":"denyago","id":489554,"avatar_url":"https://avatars.githubusercontent.com/u/489554?v=3","gravatar_id":"","url":"https://api.github.com/users/denyago","html_url":"https://github.com/denyago","followers_url":"https://api.github.com/users/denyago/followers","following_url":"https://api.github.com/users/denyago/following{/other_user}","gists_url":"https://api.github.com/users/denyago/gists{/gist_id}","starred_url":"https://api.github.com/users/denyago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denyago/subscriptions","organizations_url":"https://api.github.com/users/denyago/orgs","repos_url":"https://api.github.com/users/denyago/repos","events_url":"https://api.github.com/users/denyago/events{/privacy}","received_events_url":"https://api.github.com/users/denyago/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T15:20:14Z","updated_at":"2015-07-15T15:20:14Z","body":"Same issue.\r\n\r\n```ruby\r\nm = Mapping.new(price: '1.00 EUR')\r\nm.valid? # false\r\nm.errors.full_messages \r\n# \"Price is not a number\"\r\n```\r\n\r\n```\r\nclass Mapping < ActiveRecord::Base\r\n  monetize :price_cents, as: :price,\r\n                         numericality: {greater_than_or_equal_to: 0},\r\n                         with_model_currency: :price_currency\r\n```\r\n\r\n```\r\nmoney (6.5.1)\r\nmoney-rails (1.4.1)\r\n```"}}