{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-grape/grape-entity/issues/171","labels_url":"https://api.github.com/repos/ruby-grape/grape-entity/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/ruby-grape/grape-entity/issues/171/comments","events_url":"https://api.github.com/repos/ruby-grape/grape-entity/issues/171/events","html_url":"https://github.com/ruby-grape/grape-entity/issues/171","id":103206782,"number":171,"title":"how to split entity define from model into another directory?","user":{"login":"TangMonk","id":3498786,"avatar_url":"https://avatars.githubusercontent.com/u/3498786?v=3","gravatar_id":"","url":"https://api.github.com/users/TangMonk","html_url":"https://github.com/TangMonk","followers_url":"https://api.github.com/users/TangMonk/followers","following_url":"https://api.github.com/users/TangMonk/following{/other_user}","gists_url":"https://api.github.com/users/TangMonk/gists{/gist_id}","starred_url":"https://api.github.com/users/TangMonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TangMonk/subscriptions","organizations_url":"https://api.github.com/users/TangMonk/orgs","repos_url":"https://api.github.com/users/TangMonk/repos","events_url":"https://api.github.com/users/TangMonk/events{/privacy}","received_events_url":"https://api.github.com/users/TangMonk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-26T08:22:27Z","updated_at":"2015-08-26T09:44:39Z","closed_at":"2015-08-26T09:44:39Z","body":"I have define entity into `app/api/v1/entities/user.rb` with following code:\r\n\r\n```ruby\r\nclass User::Entity < Grape::Entity\r\n  expose :user_phone\r\n  expose :user_nickname\r\n  expose :user_qq\r\n  expose :wx\r\n  expose :laiwang\r\n  expose :gong_xian_month do |entity|\r\n    entity.gongxian :month\r\n  end\r\n  expose :gong_xian_all do  |entity|\r\n    entity.gongxian :all\r\n  end\r\nend\r\n```\r\n\r\nBut when test from rails console , it throw me error:\r\n\r\n```\r\nNameError: uninitialized constant User::Entity\r\n```"},"comment":{"url":"https://api.github.com/repos/ruby-grape/grape-entity/issues/comments/134925916","html_url":"https://github.com/ruby-grape/grape-entity/issues/171#issuecomment-134925916","issue_url":"https://api.github.com/repos/ruby-grape/grape-entity/issues/171","id":134925916,"user":{"login":"TangMonk","id":3498786,"avatar_url":"https://avatars.githubusercontent.com/u/3498786?v=3","gravatar_id":"","url":"https://api.github.com/users/TangMonk","html_url":"https://github.com/TangMonk","followers_url":"https://api.github.com/users/TangMonk/followers","following_url":"https://api.github.com/users/TangMonk/following{/other_user}","gists_url":"https://api.github.com/users/TangMonk/gists{/gist_id}","starred_url":"https://api.github.com/users/TangMonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TangMonk/subscriptions","organizations_url":"https://api.github.com/users/TangMonk/orgs","repos_url":"https://api.github.com/users/TangMonk/repos","events_url":"https://api.github.com/users/TangMonk/events{/privacy}","received_events_url":"https://api.github.com/users/TangMonk/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T09:44:39Z","updated_at":"2015-08-26T09:44:39Z","body":"@marshall-lee , wow, I am sorry for my stupid, thanks!"}}