{"action":"created","issue":{"url":"https://api.github.com/repos/kc-train/question_mod/issues/10","labels_url":"https://api.github.com/repos/kc-train/question_mod/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/kc-train/question_mod/issues/10/comments","events_url":"https://api.github.com/repos/kc-train/question_mod/issues/10/events","html_url":"https://github.com/kc-train/question_mod/issues/10","id":120955278,"number":10,"title":"#7 BUG","user":{"login":"destinyd","id":68806,"avatar_url":"https://avatars.githubusercontent.com/u/68806?v=3","gravatar_id":"","url":"https://api.github.com/users/destinyd","html_url":"https://github.com/destinyd","followers_url":"https://api.github.com/users/destinyd/followers","following_url":"https://api.github.com/users/destinyd/following{/other_user}","gists_url":"https://api.github.com/users/destinyd/gists{/gist_id}","starred_url":"https://api.github.com/users/destinyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/destinyd/subscriptions","organizations_url":"https://api.github.com/users/destinyd/orgs","repos_url":"https://api.github.com/users/destinyd/repos","events_url":"https://api.github.com/users/destinyd/events{/privacy}","received_events_url":"https://api.github.com/users/destinyd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-08T08:00:18Z","updated_at":"2015-12-09T08:27:01Z","closed_at":null,"body":"```ruby\r\n# 查询用户创建的问题\r\nuser.created_questions\r\n\r\n# 查询用户回答过的问题(该用户进行过回答的问题)\r\nuser.answed_questions\r\n```\r\n返回均为array，我们需要的是scope"},"comment":{"url":"https://api.github.com/repos/kc-train/question_mod/issues/comments/163148857","html_url":"https://github.com/kc-train/question_mod/issues/10#issuecomment-163148857","issue_url":"https://api.github.com/repos/kc-train/question_mod/issues/10","id":163148857,"user":{"login":"destinyd","id":68806,"avatar_url":"https://avatars.githubusercontent.com/u/68806?v=3","gravatar_id":"","url":"https://api.github.com/users/destinyd","html_url":"https://github.com/destinyd","followers_url":"https://api.github.com/users/destinyd/followers","following_url":"https://api.github.com/users/destinyd/following{/other_user}","gists_url":"https://api.github.com/users/destinyd/gists{/gist_id}","starred_url":"https://api.github.com/users/destinyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/destinyd/subscriptions","organizations_url":"https://api.github.com/users/destinyd/orgs","repos_url":"https://api.github.com/users/destinyd/repos","events_url":"https://api.github.com/users/destinyd/events{/privacy}","received_events_url":"https://api.github.com/users/destinyd/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T08:27:01Z","updated_at":"2015-12-09T08:27:01Z","body":"** user.created_questions **为Mongoid::Relations::Targets::Enumerable ，基本没有问题\r\n\r\n**user.answed_questions** 返回为Array，还需要再改造"}}