{"action":"created","issue":{"url":"https://api.github.com/repos/RubyMoney/monetize/issues/57","labels_url":"https://api.github.com/repos/RubyMoney/monetize/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/RubyMoney/monetize/issues/57/comments","events_url":"https://api.github.com/repos/RubyMoney/monetize/issues/57/events","html_url":"https://github.com/RubyMoney/monetize/issues/57","id":104645079,"number":57,"title":"String#to_money parsing issue","user":{"login":"bertBruynooghe","id":500119,"avatar_url":"https://avatars.githubusercontent.com/u/500119?v=3","gravatar_id":"","url":"https://api.github.com/users/bertBruynooghe","html_url":"https://github.com/bertBruynooghe","followers_url":"https://api.github.com/users/bertBruynooghe/followers","following_url":"https://api.github.com/users/bertBruynooghe/following{/other_user}","gists_url":"https://api.github.com/users/bertBruynooghe/gists{/gist_id}","starred_url":"https://api.github.com/users/bertBruynooghe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bertBruynooghe/subscriptions","organizations_url":"https://api.github.com/users/bertBruynooghe/orgs","repos_url":"https://api.github.com/users/bertBruynooghe/repos","events_url":"https://api.github.com/users/bertBruynooghe/events{/privacy}","received_events_url":"https://api.github.com/users/bertBruynooghe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-03T08:20:19Z","updated_at":"2015-09-04T06:38:20Z","closed_at":null,"body":"when parsing ```1.234``` with a currency that has ```,``` as decimal_mark and ```.```  as thousands_separator, the currency settings are ignored, and ```.``` is considered to be the decimail_mark.\r\n\r\nI patched the code locally in my rails project:\r\n\r\n    module Monetize\r\n      class << self\r\n        def extract_cents_with_decimals_addition(input, currency = Money.default_currency)\r\n          decimal_mark = I18n.t('number.currency.format.separator')\r\n          input = \"#{input}#{decimal_mark}0\" unless input.include?(decimal_mark)\r\n          extract_cents_without_decimals_addition(input, currency)\r\n        end\r\n        alias_method_chain :extract_cents, :decimals_addition\r\n      end\r\n    end```"},"comment":{"url":"https://api.github.com/repos/RubyMoney/monetize/issues/comments/137659455","html_url":"https://github.com/RubyMoney/monetize/issues/57#issuecomment-137659455","issue_url":"https://api.github.com/repos/RubyMoney/monetize/issues/57","id":137659455,"user":{"login":"bertBruynooghe","id":500119,"avatar_url":"https://avatars.githubusercontent.com/u/500119?v=3","gravatar_id":"","url":"https://api.github.com/users/bertBruynooghe","html_url":"https://github.com/bertBruynooghe","followers_url":"https://api.github.com/users/bertBruynooghe/followers","following_url":"https://api.github.com/users/bertBruynooghe/following{/other_user}","gists_url":"https://api.github.com/users/bertBruynooghe/gists{/gist_id}","starred_url":"https://api.github.com/users/bertBruynooghe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bertBruynooghe/subscriptions","organizations_url":"https://api.github.com/users/bertBruynooghe/orgs","repos_url":"https://api.github.com/users/bertBruynooghe/repos","events_url":"https://api.github.com/users/bertBruynooghe/events{/privacy}","received_events_url":"https://api.github.com/users/bertBruynooghe/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T06:38:20Z","updated_at":"2015-09-04T06:38:20Z","body":"```undefined method `enforce_currency_delimiters=' for Monetize:Module (NoMethodError)```\r\non monetize (1.1.0)"}}