{"action":"created","issue":{"url":"https://api.github.com/repos/shioyama/friendly_id-mobility/issues/9","repository_url":"https://api.github.com/repos/shioyama/friendly_id-mobility","labels_url":"https://api.github.com/repos/shioyama/friendly_id-mobility/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/shioyama/friendly_id-mobility/issues/9/comments","events_url":"https://api.github.com/repos/shioyama/friendly_id-mobility/issues/9/events","html_url":"https://github.com/shioyama/friendly_id-mobility/pull/9","id":311444357,"node_id":"MDExOlB1bGxSZXF1ZXN0MTc5NTUyNjgz","number":9,"title":"Add tests for :scoped feature in friendly_id-mobility","user":{"login":"bricesanchez","id":1678530,"node_id":"MDQ6VXNlcjE2Nzg1MzA=","avatar_url":"https://avatars1.githubusercontent.com/u/1678530?v=4","gravatar_id":"","url":"https://api.github.com/users/bricesanchez","html_url":"https://github.com/bricesanchez","followers_url":"https://api.github.com/users/bricesanchez/followers","following_url":"https://api.github.com/users/bricesanchez/following{/other_user}","gists_url":"https://api.github.com/users/bricesanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/bricesanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bricesanchez/subscriptions","organizations_url":"https://api.github.com/users/bricesanchez/orgs","repos_url":"https://api.github.com/users/bricesanchez/repos","events_url":"https://api.github.com/users/bricesanchez/events{/privacy}","received_events_url":"https://api.github.com/users/bricesanchez/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-05T01:31:19Z","updated_at":"2018-09-25T11:17:20Z","closed_at":"2018-04-05T12:52:56Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/shioyama/friendly_id-mobility/pulls/9","html_url":"https://github.com/shioyama/friendly_id-mobility/pull/9","diff_url":"https://github.com/shioyama/friendly_id-mobility/pull/9.diff","patch_url":"https://github.com/shioyama/friendly_id-mobility/pull/9.patch"},"body":"Hi @shioyama !\r\n\r\nIt looks like the `:scoped` feature works well with Mobility."},"comment":{"url":"https://api.github.com/repos/shioyama/friendly_id-mobility/issues/comments/424303700","html_url":"https://github.com/shioyama/friendly_id-mobility/pull/9#issuecomment-424303700","issue_url":"https://api.github.com/repos/shioyama/friendly_id-mobility/issues/9","id":424303700,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDMwMzcwMA==","user":{"login":"andreierdoss","id":34412,"node_id":"MDQ6VXNlcjM0NDEy","avatar_url":"https://avatars3.githubusercontent.com/u/34412?v=4","gravatar_id":"","url":"https://api.github.com/users/andreierdoss","html_url":"https://github.com/andreierdoss","followers_url":"https://api.github.com/users/andreierdoss/followers","following_url":"https://api.github.com/users/andreierdoss/following{/other_user}","gists_url":"https://api.github.com/users/andreierdoss/gists{/gist_id}","starred_url":"https://api.github.com/users/andreierdoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreierdoss/subscriptions","organizations_url":"https://api.github.com/users/andreierdoss/orgs","repos_url":"https://api.github.com/users/andreierdoss/repos","events_url":"https://api.github.com/users/andreierdoss/events{/privacy}","received_events_url":"https://api.github.com/users/andreierdoss/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T11:17:20Z","updated_at":"2018-09-25T11:17:20Z","author_association":"NONE","body":"Scoped does not work for me. I am using it in a self referential relationship ie. categories with sub categories and I am scoping on the parent.\r\n\r\n`\r\nclass Location < ApplicationRecord\r\n  belongs_to :parent, class_name: 'Location', optional: true\r\n  has_many :children, class_name: 'Location', foreign_key: 'parent_id'\r\n  \r\n  extend Mobility\r\n  translates :name, :slug, dirty: true\r\n\r\n  extend FriendlyId\r\n  friendly_id :name, use: [:mobility, :scoped], scope: :parent\r\nend`\r\n\r\nPlease let me know if I am missing something. The slug created are only the name without the parent."}}
{"actor":{"display_login":"andreierdoss"}}