{"action":"opened","issue":{"url":"https://api.github.com/repos/norman/friendly_id/issues/756","repository_url":"https://api.github.com/repos/norman/friendly_id","labels_url":"https://api.github.com/repos/norman/friendly_id/issues/756/labels{/name}","comments_url":"https://api.github.com/repos/norman/friendly_id/issues/756/comments","events_url":"https://api.github.com/repos/norman/friendly_id/issues/756/events","html_url":"https://github.com/norman/friendly_id/issues/756","id":159302752,"number":756,"title":"Issues generating slug with attributes from an associated readonly model.","user":{"login":"mikemerritt","id":416570,"avatar_url":"https://avatars.githubusercontent.com/u/416570?v=3","gravatar_id":"","url":"https://api.github.com/users/mikemerritt","html_url":"https://github.com/mikemerritt","followers_url":"https://api.github.com/users/mikemerritt/followers","following_url":"https://api.github.com/users/mikemerritt/following{/other_user}","gists_url":"https://api.github.com/users/mikemerritt/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemerritt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemerritt/subscriptions","organizations_url":"https://api.github.com/users/mikemerritt/orgs","repos_url":"https://api.github.com/users/mikemerritt/repos","events_url":"https://api.github.com/users/mikemerritt/events{/privacy}","received_events_url":"https://api.github.com/users/mikemerritt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-08T23:59:21Z","updated_at":"2016-06-08T23:59:21Z","closed_at":null,"body":"I'm having issues getting friendly_id to use attributes from an associated model that is set to readonly. This appears to be an issue in friendly_id, which is why I'm posting it here.\r\n\r\nYou can view the offending code examples over on [this stackoverflow post](http://stackoverflow.com/questions/37714185/trouble-accessing-attributes-of-associated-read-only-model?noredirect=1#comment62902774_37714185)\r\n\r\nFor an unknown reason when friendly_id tries to generate the slug from a method that is using attributes of an associated read only model, the read only model thinks it is trying to be modified and throws an `ActiveRecord::ReadOnlyRecord: TheAssociatedModel is marked as readonly` error."}}
{"actor":{"display_login":"mikemerritt"}}