{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/24834","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/24834/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/24834/comments","events_url":"https://api.github.com/repos/rails/rails/issues/24834/events","html_url":"https://github.com/rails/rails/pull/24834","id":152845706,"number":24834,"title":"Change RangeError to a more specific ActiveModel::OutOfRangeError","user":{"login":"christianblais","id":596120,"avatar_url":"https://avatars.githubusercontent.com/u/596120?v=3","gravatar_id":"","url":"https://api.github.com/users/christianblais","html_url":"https://github.com/christianblais","followers_url":"https://api.github.com/users/christianblais/followers","following_url":"https://api.github.com/users/christianblais/following{/other_user}","gists_url":"https://api.github.com/users/christianblais/gists{/gist_id}","starred_url":"https://api.github.com/users/christianblais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianblais/subscriptions","organizations_url":"https://api.github.com/users/christianblais/orgs","repos_url":"https://api.github.com/users/christianblais/repos","events_url":"https://api.github.com/users/christianblais/events{/privacy}","received_events_url":"https://api.github.com/users/christianblais/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"rafaelfranca","id":47848,"avatar_url":"https://avatars.githubusercontent.com/u/47848?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelfranca","html_url":"https://github.com/rafaelfranca","followers_url":"https://api.github.com/users/rafaelfranca/followers","following_url":"https://api.github.com/users/rafaelfranca/following{/other_user}","gists_url":"https://api.github.com/users/rafaelfranca/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelfranca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelfranca/subscriptions","organizations_url":"https://api.github.com/users/rafaelfranca/orgs","repos_url":"https://api.github.com/users/rafaelfranca/repos","events_url":"https://api.github.com/users/rafaelfranca/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelfranca/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-05-03T18:42:18Z","updated_at":"2016-05-03T18:48:40Z","closed_at":"2016-05-03T18:48:40Z","pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/24834","html_url":"https://github.com/rails/rails/pull/24834","diff_url":"https://github.com/rails/rails/pull/24834.diff","patch_url":"https://github.com/rails/rails/pull/24834.patch"},"body":"### Summary\r\n\r\nWhen provided with large numbers, ActiveModel fails with a generic\r\n`RangeError`. While it is technically true, the fact that this is a generic,\r\nnon specific error make it really hard to implement application wide\r\n`rescue_from` to handle bad requests.\r\n\r\nWith this PR, ActiveModel would now throw a specific `ActiveModel::OutOfRangeError`,\r\nwhich inherits from `RangeError` to maintain compatibility."},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/216627442","html_url":"https://github.com/rails/rails/pull/24834#issuecomment-216627442","issue_url":"https://api.github.com/repos/rails/rails/issues/24834","id":216627442,"user":{"login":"christianblais","id":596120,"avatar_url":"https://avatars.githubusercontent.com/u/596120?v=3","gravatar_id":"","url":"https://api.github.com/users/christianblais","html_url":"https://github.com/christianblais","followers_url":"https://api.github.com/users/christianblais/followers","following_url":"https://api.github.com/users/christianblais/following{/other_user}","gists_url":"https://api.github.com/users/christianblais/gists{/gist_id}","starred_url":"https://api.github.com/users/christianblais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianblais/subscriptions","organizations_url":"https://api.github.com/users/christianblais/orgs","repos_url":"https://api.github.com/users/christianblais/repos","events_url":"https://api.github.com/users/christianblais/events{/privacy}","received_events_url":"https://api.github.com/users/christianblais/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T18:48:40Z","updated_at":"2016-05-03T18:48:40Z","body":"Closed in favour of https://github.com/rails/rails/pull/24835. Changed commit names and description."}}