{"action":"created","issue":{"url":"https://api.github.com/repos/merit-gem/merit/issues/236","labels_url":"https://api.github.com/repos/merit-gem/merit/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/merit-gem/merit/issues/236/comments","events_url":"https://api.github.com/repos/merit-gem/merit/issues/236/events","html_url":"https://github.com/merit-gem/merit/issues/236","id":103422963,"number":236,"title":"why check the id if model_name is passed?","user":{"login":"hw676018683","id":8272538,"avatar_url":"https://avatars.githubusercontent.com/u/8272538?v=3","gravatar_id":"","url":"https://api.github.com/users/hw676018683","html_url":"https://github.com/hw676018683","followers_url":"https://api.github.com/users/hw676018683/followers","following_url":"https://api.github.com/users/hw676018683/following{/other_user}","gists_url":"https://api.github.com/users/hw676018683/gists{/gist_id}","starred_url":"https://api.github.com/users/hw676018683/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hw676018683/subscriptions","organizations_url":"https://api.github.com/users/hw676018683/orgs","repos_url":"https://api.github.com/users/hw676018683/repos","events_url":"https://api.github.com/users/hw676018683/events{/privacy}","received_events_url":"https://api.github.com/users/hw676018683/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-27T03:54:19Z","updated_at":"2015-09-03T01:42:13Z","closed_at":"2015-09-02T16:54:47Z","body":"is there something wrong if not checking?\r\n```ruby\r\n    def check_active_record_id(id)\r\n      id.to_s =~ /^[0-9]+$/\r\n    end\r\n\r\n    def check_mongoid_id(id)\r\n      id.to_s =~ /^[0-9a-fA-F]{24}$/\r\n    end\r\n```\r\ni was confused with that, because i used auto incrementing id in mongodb.\r\nfailing to ` id.to_s =~ /^[0-9a-fA-F]{24}$/`.\r\nis it possiablely canceled?\r\n"},"comment":{"url":"https://api.github.com/repos/merit-gem/merit/issues/comments/137297637","html_url":"https://github.com/merit-gem/merit/issues/236#issuecomment-137297637","issue_url":"https://api.github.com/repos/merit-gem/merit/issues/236","id":137297637,"user":{"login":"hw676018683","id":8272538,"avatar_url":"https://avatars.githubusercontent.com/u/8272538?v=3","gravatar_id":"","url":"https://api.github.com/users/hw676018683","html_url":"https://github.com/hw676018683","followers_url":"https://api.github.com/users/hw676018683/followers","following_url":"https://api.github.com/users/hw676018683/following{/other_user}","gists_url":"https://api.github.com/users/hw676018683/gists{/gist_id}","starred_url":"https://api.github.com/users/hw676018683/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hw676018683/subscriptions","organizations_url":"https://api.github.com/users/hw676018683/orgs","repos_url":"https://api.github.com/users/hw676018683/repos","events_url":"https://api.github.com/users/hw676018683/events{/privacy}","received_events_url":"https://api.github.com/users/hw676018683/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T01:42:13Z","updated_at":"2015-09-03T01:42:13Z","body":"Thank you for the answer.\r\nBut is there something wrong to delete the check. I'm very confused with this.\r\nCan you explain it more for me ?\r\nthx"}}