{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/23238","labels_url":"https://api.github.com/repos/rails/rails/issues/23238/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/23238/comments","events_url":"https://api.github.com/repos/rails/rails/issues/23238/events","html_url":"https://github.com/rails/rails/pull/23238","id":128589603,"number":23238,"title":"Use Big Decimal to determine integer precisely, fix #23224","user":{"login":"southwolf","id":150648,"avatar_url":"https://avatars.githubusercontent.com/u/150648?v=3","gravatar_id":"","url":"https://api.github.com/users/southwolf","html_url":"https://github.com/southwolf","followers_url":"https://api.github.com/users/southwolf/followers","following_url":"https://api.github.com/users/southwolf/following{/other_user}","gists_url":"https://api.github.com/users/southwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/southwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/southwolf/subscriptions","organizations_url":"https://api.github.com/users/southwolf/orgs","repos_url":"https://api.github.com/users/southwolf/repos","events_url":"https://api.github.com/users/southwolf/events{/privacy}","received_events_url":"https://api.github.com/users/southwolf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rails/rails/labels/activemodel","name":"activemodel","color":"00E5FF"}],"state":"open","locked":false,"assignee":{"login":"senny","id":5402,"avatar_url":"https://avatars.githubusercontent.com/u/5402?v=3","gravatar_id":"","url":"https://api.github.com/users/senny","html_url":"https://github.com/senny","followers_url":"https://api.github.com/users/senny/followers","following_url":"https://api.github.com/users/senny/following{/other_user}","gists_url":"https://api.github.com/users/senny/gists{/gist_id}","starred_url":"https://api.github.com/users/senny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senny/subscriptions","organizations_url":"https://api.github.com/users/senny/orgs","repos_url":"https://api.github.com/users/senny/repos","events_url":"https://api.github.com/users/senny/events{/privacy}","received_events_url":"https://api.github.com/users/senny/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-01-25T17:09:31Z","updated_at":"2016-02-01T12:33:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/23238","html_url":"https://github.com/rails/rails/pull/23238","diff_url":"https://github.com/rails/rails/pull/23238.diff","patch_url":"https://github.com/rails/rails/pull/23238.patch"},"body":"This patch will not check only the format of an integer (as before), but checks the value of a number using [BigDecimal#frac](http://ruby-doc.org/stdlib-2.3.0/libdoc/bigdecimal/rdoc/BigDecimal.html#method-i-frac) to determine integer precisely. It is a little slower (of course) but may be acceptable.\r\n\r\n[Benchkmark](https://gist.github.com/southwolf/b6ae3c8ff82e959548ac)"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/177953195","html_url":"https://github.com/rails/rails/pull/23238#issuecomment-177953195","issue_url":"https://api.github.com/repos/rails/rails/issues/23238","id":177953195,"user":{"login":"senny","id":5402,"avatar_url":"https://avatars.githubusercontent.com/u/5402?v=3","gravatar_id":"","url":"https://api.github.com/users/senny","html_url":"https://github.com/senny","followers_url":"https://api.github.com/users/senny/followers","following_url":"https://api.github.com/users/senny/following{/other_user}","gists_url":"https://api.github.com/users/senny/gists{/gist_id}","starred_url":"https://api.github.com/users/senny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senny/subscriptions","organizations_url":"https://api.github.com/users/senny/orgs","repos_url":"https://api.github.com/users/senny/repos","events_url":"https://api.github.com/users/senny/events{/privacy}","received_events_url":"https://api.github.com/users/senny/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T12:33:08Z","updated_at":"2016-02-01T12:33:08Z","body":"@sean might know more details about the intent of the validation."}}