{"action":"created","issue":{"url":"https://api.github.com/repos/hanami/hanami/issues/611","repository_url":"https://api.github.com/repos/hanami/hanami","labels_url":"https://api.github.com/repos/hanami/hanami/issues/611/labels{/name}","comments_url":"https://api.github.com/repos/hanami/hanami/issues/611/comments","events_url":"https://api.github.com/repos/hanami/hanami/issues/611/events","html_url":"https://github.com/hanami/hanami/issues/611","id":165454362,"number":611,"title":"generating model results in uninitialized constant [EntityNameHere] (NameError)","user":{"login":"chellberg","id":4022252,"avatar_url":"https://avatars.githubusercontent.com/u/4022252?v=3","gravatar_id":"","url":"https://api.github.com/users/chellberg","html_url":"https://github.com/chellberg","followers_url":"https://api.github.com/users/chellberg/followers","following_url":"https://api.github.com/users/chellberg/following{/other_user}","gists_url":"https://api.github.com/users/chellberg/gists{/gist_id}","starred_url":"https://api.github.com/users/chellberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chellberg/subscriptions","organizations_url":"https://api.github.com/users/chellberg/orgs","repos_url":"https://api.github.com/users/chellberg/repos","events_url":"https://api.github.com/users/chellberg/events{/privacy}","received_events_url":"https://api.github.com/users/chellberg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hanami/hanami/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"jodosha","id":5089,"avatar_url":"https://avatars.githubusercontent.com/u/5089?v=3","gravatar_id":"","url":"https://api.github.com/users/jodosha","html_url":"https://github.com/jodosha","followers_url":"https://api.github.com/users/jodosha/followers","following_url":"https://api.github.com/users/jodosha/following{/other_user}","gists_url":"https://api.github.com/users/jodosha/gists{/gist_id}","starred_url":"https://api.github.com/users/jodosha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodosha/subscriptions","organizations_url":"https://api.github.com/users/jodosha/orgs","repos_url":"https://api.github.com/users/jodosha/repos","events_url":"https://api.github.com/users/jodosha/events{/privacy}","received_events_url":"https://api.github.com/users/jodosha/received_events","type":"User","site_admin":false},"assignees":[{"login":"jodosha","id":5089,"avatar_url":"https://avatars.githubusercontent.com/u/5089?v=3","gravatar_id":"","url":"https://api.github.com/users/jodosha","html_url":"https://github.com/jodosha","followers_url":"https://api.github.com/users/jodosha/followers","following_url":"https://api.github.com/users/jodosha/following{/other_user}","gists_url":"https://api.github.com/users/jodosha/gists{/gist_id}","starred_url":"https://api.github.com/users/jodosha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodosha/subscriptions","organizations_url":"https://api.github.com/users/jodosha/orgs","repos_url":"https://api.github.com/users/jodosha/repos","events_url":"https://api.github.com/users/jodosha/events{/privacy}","received_events_url":"https://api.github.com/users/jodosha/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/hanami/hanami/milestones/12","html_url":"https://github.com/hanami/hanami/milestones/v0.8.0","labels_url":"https://api.github.com/repos/hanami/hanami/milestones/12/labels","id":1543738,"number":12,"title":"v0.8.0","description":"","creator":{"login":"jodosha","id":5089,"avatar_url":"https://avatars.githubusercontent.com/u/5089?v=3","gravatar_id":"","url":"https://api.github.com/users/jodosha","html_url":"https://github.com/jodosha","followers_url":"https://api.github.com/users/jodosha/followers","following_url":"https://api.github.com/users/jodosha/following{/other_user}","gists_url":"https://api.github.com/users/jodosha/gists{/gist_id}","starred_url":"https://api.github.com/users/jodosha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodosha/subscriptions","organizations_url":"https://api.github.com/users/jodosha/orgs","repos_url":"https://api.github.com/users/jodosha/repos","events_url":"https://api.github.com/users/jodosha/events{/privacy}","received_events_url":"https://api.github.com/users/jodosha/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":96,"state":"open","created_at":"2016-01-26T09:37:50Z","updated_at":"2016-07-22T14:27:49Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-07-14T00:58:27Z","updated_at":"2016-07-24T19:35:45Z","closed_at":"2016-07-14T08:09:17Z","body":"see it [here](https://github.com/chellberg/hanami-entity-generator-test)\r\n(boring) [Gemfile.lock](https://gist.github.com/chellberg/2d43925bbbdedd9919cae87c6407bf91)\r\n\r\nI ran ```hanami new entity-generator-test --database=postgres``` to generate the project, then `bundle exec hanami generate model game` to generate my `Game` entity and repository. \r\n\r\nTo repro, clone and run `rake`. The generated entity spec fails with `uninitialized constant Game (NameError)` on `describe Game`, and I get the same error trying to instantiate a `Game` in `hanami console`\r\n\r\nSuggestions? Apologies if I missed something obvious!"},"comment":{"url":"https://api.github.com/repos/hanami/hanami/issues/comments/234797296","html_url":"https://github.com/hanami/hanami/issues/611#issuecomment-234797296","issue_url":"https://api.github.com/repos/hanami/hanami/issues/611","id":234797296,"user":{"login":"chellberg","id":4022252,"avatar_url":"https://avatars.githubusercontent.com/u/4022252?v=3","gravatar_id":"","url":"https://api.github.com/users/chellberg","html_url":"https://github.com/chellberg","followers_url":"https://api.github.com/users/chellberg/followers","following_url":"https://api.github.com/users/chellberg/following{/other_user}","gists_url":"https://api.github.com/users/chellberg/gists{/gist_id}","starred_url":"https://api.github.com/users/chellberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chellberg/subscriptions","organizations_url":"https://api.github.com/users/chellberg/orgs","repos_url":"https://api.github.com/users/chellberg/repos","events_url":"https://api.github.com/users/chellberg/events{/privacy}","received_events_url":"https://api.github.com/users/chellberg/received_events","type":"User","site_admin":false},"created_at":"2016-07-24T19:35:45Z","updated_at":"2016-07-24T19:35:45Z","body":"Nice! Thanks so much @jodosha "}}
{"actor":{"display_login":"chellberg"}}