{"action":"created","issue":{"url":"https://api.github.com/repos/jackdempsey/sequel_polymorphic/issues/7","labels_url":"https://api.github.com/repos/jackdempsey/sequel_polymorphic/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/jackdempsey/sequel_polymorphic/issues/7/comments","events_url":"https://api.github.com/repos/jackdempsey/sequel_polymorphic/issues/7/events","html_url":"https://github.com/jackdempsey/sequel_polymorphic/issues/7","id":48447809,"number":7,"title":"possible to get \"uninitialized constant\" errors","user":{"login":"jmay","id":5931,"avatar_url":"https://avatars.githubusercontent.com/u/5931?v=3","gravatar_id":"","url":"https://api.github.com/users/jmay","html_url":"https://github.com/jmay","followers_url":"https://api.github.com/users/jmay/followers","following_url":"https://api.github.com/users/jmay/following{/other_user}","gists_url":"https://api.github.com/users/jmay/gists{/gist_id}","starred_url":"https://api.github.com/users/jmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmay/subscriptions","organizations_url":"https://api.github.com/users/jmay/orgs","repos_url":"https://api.github.com/users/jmay/repos","events_url":"https://api.github.com/users/jmay/events{/privacy}","received_events_url":"https://api.github.com/users/jmay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-11-11T23:04:38Z","updated_at":"2015-06-04T17:02:10Z","closed_at":null,"body":"In your README example, if you try `Asset.first.attachable` then you will get `uninitialized constant Attachable`. For some reason it isn't realizing that it should be fetching a `Note` instead of an `Attachable`.\r\n\r\nWorks fine if you start with the `Note` and try to do a round-trip, i.e. `note.assets.first.attachable`.\r\n"},"comment":{"url":"https://api.github.com/repos/jackdempsey/sequel_polymorphic/issues/comments/108972281","html_url":"https://github.com/jackdempsey/sequel_polymorphic/issues/7#issuecomment-108972281","issue_url":"https://api.github.com/repos/jackdempsey/sequel_polymorphic/issues/7","id":108972281,"user":{"login":"kuraga","id":1063219,"avatar_url":"https://avatars.githubusercontent.com/u/1063219?v=3","gravatar_id":"","url":"https://api.github.com/users/kuraga","html_url":"https://github.com/kuraga","followers_url":"https://api.github.com/users/kuraga/followers","following_url":"https://api.github.com/users/kuraga/following{/other_user}","gists_url":"https://api.github.com/users/kuraga/gists{/gist_id}","starred_url":"https://api.github.com/users/kuraga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuraga/subscriptions","organizations_url":"https://api.github.com/users/kuraga/orgs","repos_url":"https://api.github.com/users/kuraga/repos","events_url":"https://api.github.com/users/kuraga/events{/privacy}","received_events_url":"https://api.github.com/users/kuraga/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T17:02:10Z","updated_at":"2015-06-04T17:02:10Z","body":"(after research)\r\n\r\nError appears in `sequel` 4.15.0\r\n\r\n@jmay,\r\nDo you have a solution?"}}