{"action":"created","issue":{"url":"https://api.github.com/repos/drujensen/kemalyst-model/issues/23","repository_url":"https://api.github.com/repos/drujensen/kemalyst-model","labels_url":"https://api.github.com/repos/drujensen/kemalyst-model/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/drujensen/kemalyst-model/issues/23/comments","events_url":"https://api.github.com/repos/drujensen/kemalyst-model/issues/23/events","html_url":"https://github.com/drujensen/kemalyst-model/issues/23","id":215685657,"number":23,"title":"Classes must be in toplevel scope.","user":{"login":"yxhuvud","id":155895,"avatar_url":"https://avatars2.githubusercontent.com/u/155895?v=3","gravatar_id":"","url":"https://api.github.com/users/yxhuvud","html_url":"https://github.com/yxhuvud","followers_url":"https://api.github.com/users/yxhuvud/followers","following_url":"https://api.github.com/users/yxhuvud/following{/other_user}","gists_url":"https://api.github.com/users/yxhuvud/gists{/gist_id}","starred_url":"https://api.github.com/users/yxhuvud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yxhuvud/subscriptions","organizations_url":"https://api.github.com/users/yxhuvud/orgs","repos_url":"https://api.github.com/users/yxhuvud/repos","events_url":"https://api.github.com/users/yxhuvud/events{/privacy}","received_events_url":"https://api.github.com/users/yxhuvud/received_events","type":"User","site_admin":false},"labels":[{"id":251246821,"url":"https://api.github.com/repos/drujensen/kemalyst-model/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":251246822,"url":"https://api.github.com/repos/drujensen/kemalyst-model/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-03-21T10:09:19Z","updated_at":"2017-04-30T01:35:15Z","closed_at":"2017-04-30T01:35:15Z","body":"The macros break when trying to put the model inside a module, eg \r\n\r\n```\r\n  module Foo\r\n    class Wat < Kemalyst::Model\r\n      adapter pg\r\n      sql_mapping({unicorns: String})\r\n    end\r\n  end\r\n```"},"comment":{"url":"https://api.github.com/repos/drujensen/kemalyst-model/issues/comments/298205174","html_url":"https://github.com/drujensen/kemalyst-model/issues/23#issuecomment-298205174","issue_url":"https://api.github.com/repos/drujensen/kemalyst-model/issues/23","id":298205174,"user":{"login":"drujensen","id":18718,"avatar_url":"https://avatars1.githubusercontent.com/u/18718?v=3","gravatar_id":"","url":"https://api.github.com/users/drujensen","html_url":"https://github.com/drujensen","followers_url":"https://api.github.com/users/drujensen/followers","following_url":"https://api.github.com/users/drujensen/following{/other_user}","gists_url":"https://api.github.com/users/drujensen/gists{/gist_id}","starred_url":"https://api.github.com/users/drujensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drujensen/subscriptions","organizations_url":"https://api.github.com/users/drujensen/orgs","repos_url":"https://api.github.com/users/drujensen/repos","events_url":"https://api.github.com/users/drujensen/events{/privacy}","received_events_url":"https://api.github.com/users/drujensen/received_events","type":"User","site_admin":false},"created_at":"2017-04-30T01:35:15Z","updated_at":"2017-04-30T01:35:15Z","body":"Release v0.5.5 fixes this issue."}}
{"actor":{"display_login":"drujensen"}}