{"action":"closed","issue":{"url":"https://api.github.com/repos/fotinakis/jsonapi-serializers/issues/25","labels_url":"https://api.github.com/repos/fotinakis/jsonapi-serializers/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/fotinakis/jsonapi-serializers/issues/25/comments","events_url":"https://api.github.com/repos/fotinakis/jsonapi-serializers/issues/25/events","html_url":"https://github.com/fotinakis/jsonapi-serializers/issues/25","id":106719310,"number":25,"title":"Serializing Polymorphic Relationship","user":{"login":"huteri","id":4598788,"avatar_url":"https://avatars.githubusercontent.com/u/4598788?v=3","gravatar_id":"","url":"https://api.github.com/users/huteri","html_url":"https://github.com/huteri","followers_url":"https://api.github.com/users/huteri/followers","following_url":"https://api.github.com/users/huteri/following{/other_user}","gists_url":"https://api.github.com/users/huteri/gists{/gist_id}","starred_url":"https://api.github.com/users/huteri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huteri/subscriptions","organizations_url":"https://api.github.com/users/huteri/orgs","repos_url":"https://api.github.com/users/huteri/repos","events_url":"https://api.github.com/users/huteri/events{/privacy}","received_events_url":"https://api.github.com/users/huteri/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-16T07:55:32Z","updated_at":"2015-09-16T08:14:08Z","closed_at":"2015-09-16T08:14:08Z","body":"Hi, in the model I have field which is polymorphic such as this\r\n``` \r\nbelongs_to :agent, class_name: \"User\", polymorphic: true\r\n```\r\nthe problem is, the serializer does not recognize the agent as a relationship with the user model. So there is no data found in the json. Any workaround for this?"}}