{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/21551","labels_url":"https://api.github.com/repos/rails/rails/issues/21551/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/21551/comments","events_url":"https://api.github.com/repos/rails/rails/issues/21551/events","html_url":"https://github.com/rails/rails/pull/21551","id":105402345,"number":21551,"title":"ActiveJob: Duck typing in argument serialization for objects","user":{"login":"Strech","id":920053,"avatar_url":"https://avatars.githubusercontent.com/u/920053?v=3","gravatar_id":"","url":"https://api.github.com/users/Strech","html_url":"https://github.com/Strech","followers_url":"https://api.github.com/users/Strech/followers","following_url":"https://api.github.com/users/Strech/following{/other_user}","gists_url":"https://api.github.com/users/Strech/gists{/gist_id}","starred_url":"https://api.github.com/users/Strech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Strech/subscriptions","organizations_url":"https://api.github.com/users/Strech/orgs","repos_url":"https://api.github.com/users/Strech/repos","events_url":"https://api.github.com/users/Strech/events{/privacy}","received_events_url":"https://api.github.com/users/Strech/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"chancancode","id":55829,"avatar_url":"https://avatars.githubusercontent.com/u/55829?v=3","gravatar_id":"","url":"https://api.github.com/users/chancancode","html_url":"https://github.com/chancancode","followers_url":"https://api.github.com/users/chancancode/followers","following_url":"https://api.github.com/users/chancancode/following{/other_user}","gists_url":"https://api.github.com/users/chancancode/gists{/gist_id}","starred_url":"https://api.github.com/users/chancancode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chancancode/subscriptions","organizations_url":"https://api.github.com/users/chancancode/orgs","repos_url":"https://api.github.com/users/chancancode/repos","events_url":"https://api.github.com/users/chancancode/events{/privacy}","received_events_url":"https://api.github.com/users/chancancode/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-09-08T15:09:37Z","updated_at":"2015-09-24T14:11:48Z","closed_at":"2015-09-24T14:11:48Z","pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/21551","html_url":"https://github.com/rails/rails/pull/21551","diff_url":"https://github.com/rails/rails/pull/21551.diff","patch_url":"https://github.com/rails/rails/pull/21551.patch"},"body":"Right now it's impossible to pass something that wraps an AR model. I think the better way is check the ability to convert object to global id."},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/142942040","html_url":"https://github.com/rails/rails/pull/21551#issuecomment-142942040","issue_url":"https://api.github.com/repos/rails/rails/issues/21551","id":142942040,"user":{"login":"sgrif","id":1529387,"avatar_url":"https://avatars.githubusercontent.com/u/1529387?v=3","gravatar_id":"","url":"https://api.github.com/users/sgrif","html_url":"https://github.com/sgrif","followers_url":"https://api.github.com/users/sgrif/followers","following_url":"https://api.github.com/users/sgrif/following{/other_user}","gists_url":"https://api.github.com/users/sgrif/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrif/subscriptions","organizations_url":"https://api.github.com/users/sgrif/orgs","repos_url":"https://api.github.com/users/sgrif/repos","events_url":"https://api.github.com/users/sgrif/events{/privacy}","received_events_url":"https://api.github.com/users/sgrif/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T14:11:48Z","updated_at":"2015-09-24T14:11:48Z","body":"Please don't continuously ping on PRs. Your patch doesn't currently work, as you're delegating deserialization to `Person`. This test fails:\r\n\r\n```ruby\r\nround_tripped = perform_round_trip([PersonPresenter.new(@person)]).first\r\nassert_equal PersonPresenter, round_tripped.class\r\n```\r\n\r\nAdditionally, we already support objects wrapping AR models. You just need to `include GlobalID::Identification`."}}