{"action":"created","issue":{"url":"https://api.github.com/repos/norman/friendly_id/issues/637","labels_url":"https://api.github.com/repos/norman/friendly_id/issues/637/labels{/name}","comments_url":"https://api.github.com/repos/norman/friendly_id/issues/637/comments","events_url":"https://api.github.com/repos/norman/friendly_id/issues/637/events","html_url":"https://github.com/norman/friendly_id/pull/637","id":54691439,"number":637,"title":"Fix slug for composite primary keys","user":{"login":"lordmortis","id":114019,"avatar_url":"https://avatars.githubusercontent.com/u/114019?v=3","gravatar_id":"","url":"https://api.github.com/users/lordmortis","html_url":"https://github.com/lordmortis","followers_url":"https://api.github.com/users/lordmortis/followers","following_url":"https://api.github.com/users/lordmortis/following{/other_user}","gists_url":"https://api.github.com/users/lordmortis/gists{/gist_id}","starred_url":"https://api.github.com/users/lordmortis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lordmortis/subscriptions","organizations_url":"https://api.github.com/users/lordmortis/orgs","repos_url":"https://api.github.com/users/lordmortis/repos","events_url":"https://api.github.com/users/lordmortis/events{/privacy}","received_events_url":"https://api.github.com/users/lordmortis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-18T09:36:08Z","updated_at":"2015-01-30T09:31:32Z","closed_at":"2015-01-28T16:57:01Z","pull_request":{"url":"https://api.github.com/repos/norman/friendly_id/pulls/637","html_url":"https://github.com/norman/friendly_id/pull/637","diff_url":"https://github.com/norman/friendly_id/pull/637.diff","patch_url":"https://github.com/norman/friendly_id/pull/637.patch"},"body":"I'd like to add tests and anything else you need to get this merged? (This increases compatibility with [Composite Primary Keys](https://github.com/composite-primary-keys/composite_primary_keys))"},"comment":{"url":"https://api.github.com/repos/norman/friendly_id/issues/comments/72175457","html_url":"https://github.com/norman/friendly_id/pull/637#issuecomment-72175457","issue_url":"https://api.github.com/repos/norman/friendly_id/issues/637","id":72175457,"user":{"login":"lordmortis","id":114019,"avatar_url":"https://avatars.githubusercontent.com/u/114019?v=3","gravatar_id":"","url":"https://api.github.com/users/lordmortis","html_url":"https://github.com/lordmortis","followers_url":"https://api.github.com/users/lordmortis/followers","following_url":"https://api.github.com/users/lordmortis/following{/other_user}","gists_url":"https://api.github.com/users/lordmortis/gists{/gist_id}","starred_url":"https://api.github.com/users/lordmortis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lordmortis/subscriptions","organizations_url":"https://api.github.com/users/lordmortis/orgs","repos_url":"https://api.github.com/users/lordmortis/repos","events_url":"https://api.github.com/users/lordmortis/events{/privacy}","received_events_url":"https://api.github.com/users/lordmortis/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T09:31:32Z","updated_at":"2015-01-30T09:31:32Z","body":"[Here](/lordmortis/friendly_id-composite_primary_keys) <- that's my first pass at the plugin (which is basically just overriding the scope_for_slug_generator like my patch did. \r\n\r\nprimary_key_scope would likely make this a lot easier to do, and i'll look at that when i get some more time. For now, if anyone is looking to use friendly_id with composite_primary_key - there's now a plugin! (not sure if there's a place these get listed?) "}}