{"action":"created","issue":{"url":"https://api.github.com/repos/cerebris/jsonapi-resources/issues/269","labels_url":"https://api.github.com/repos/cerebris/jsonapi-resources/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/cerebris/jsonapi-resources/issues/269/comments","events_url":"https://api.github.com/repos/cerebris/jsonapi-resources/issues/269/events","html_url":"https://github.com/cerebris/jsonapi-resources/issues/269","id":89840012,"number":269,"title":"Using slugs as IDs, relationships -> links attribute","user":{"login":"brandonparsons","id":1277162,"avatar_url":"https://avatars.githubusercontent.com/u/1277162?v=3","gravatar_id":"","url":"https://api.github.com/users/brandonparsons","html_url":"https://github.com/brandonparsons","followers_url":"https://api.github.com/users/brandonparsons/followers","following_url":"https://api.github.com/users/brandonparsons/following{/other_user}","gists_url":"https://api.github.com/users/brandonparsons/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonparsons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonparsons/subscriptions","organizations_url":"https://api.github.com/users/brandonparsons/orgs","repos_url":"https://api.github.com/users/brandonparsons/repos","events_url":"https://api.github.com/users/brandonparsons/events{/privacy}","received_events_url":"https://api.github.com/users/brandonparsons/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-21T00:27:50Z","updated_at":"2015-06-22T04:21:46Z","closed_at":null,"body":"Hi there,\r\n\r\nI'm just starting to play around with JR.  I'm using slugs as primary keys for a few models in my API (and have set `primary_key :slug` in my serializer.\r\n\r\nThe issue seems to be that JR is outputting the integer ID in the relationships/links section. E.g.:\r\n\r\n```ruby\r\n \"relationships\"=>\r\n    {\"locations\"=>\r\n      {:links=>{:self=>\"/cities/toronto/relationships/locations\", :related=>\"/cities/toronto/locations\"},\r\n       :data=>\r\n        [{:type=>\"locations\", :id=>\"15\"},\r\n         {:type=>\"locations\", :id=>\"14\"},\r\n         {:type=>\"locations\", :id=>\"7\"},\r\n         {:type=>\"locations\", :id=>\"4\"},\r\n         {:type=>\"locations\", :id=>\"10\"},\r\n         {:type=>\"locations\", :id=>\"1\"},\r\n         {:type=>\"locations\", :id=>\"9\"},\r\n         {:type=>\"locations\", :id=>\"12\"},\r\n         {:type=>\"locations\", :id=>\"11\"},\r\n         {:type=>\"locations\", :id=>\"17\"},\r\n         {:type=>\"locations\", :id=>\"8\"},\r\n```\r\n\r\nI would have expected slugs here.  Help would be appreciated!"},"comment":{"url":"https://api.github.com/repos/cerebris/jsonapi-resources/issues/comments/113997124","html_url":"https://github.com/cerebris/jsonapi-resources/issues/269#issuecomment-113997124","issue_url":"https://api.github.com/repos/cerebris/jsonapi-resources/issues/269","id":113997124,"user":{"login":"rahult","id":1864,"avatar_url":"https://avatars.githubusercontent.com/u/1864?v=3","gravatar_id":"","url":"https://api.github.com/users/rahult","html_url":"https://github.com/rahult","followers_url":"https://api.github.com/users/rahult/followers","following_url":"https://api.github.com/users/rahult/following{/other_user}","gists_url":"https://api.github.com/users/rahult/gists{/gist_id}","starred_url":"https://api.github.com/users/rahult/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahult/subscriptions","organizations_url":"https://api.github.com/users/rahult/orgs","repos_url":"https://api.github.com/users/rahult/repos","events_url":"https://api.github.com/users/rahult/events{/privacy}","received_events_url":"https://api.github.com/users/rahult/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T04:21:46Z","updated_at":"2015-06-22T04:21:46Z","body":"I am using 0.4.2 and have the same issue."}}