{"pull_request":{"state":"closed","merged_by":{"avatar_url":"https://secure.gravatar.com/avatar/b3ef7c917516d794f95d3f39c0b16621?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b3ef7c917516d794f95d3f39c0b16621","url":"https://api.github.com/users/abgrilo","login":"abgrilo","id":308209},"user":{"avatar_url":"https://secure.gravatar.com/avatar/b3ef7c917516d794f95d3f39c0b16621?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b3ef7c917516d794f95d3f39c0b16621","url":"https://api.github.com/users/abgrilo","login":"abgrilo","id":308209},"deletions":21,"updated_at":"2011-11-01T17:41:39Z","diff_url":"https://github.com/umamao/umamao/pull/310.diff","comments":6,"base":{"ref":"dev","repo":{"name":"umamao","pushed_at":"2011-11-01T17:41:39Z","fork":true,"master_branch":null,"homepage":"http://umamao.com","open_issues":3,"clone_url":"https://github.com/umamao/umamao.git","updated_at":"2011-11-01T17:41:39Z","svn_url":"https://svn.github.com/umamao/umamao","language":"Ruby","private":false,"forks":11,"url":"https://api.github.com/repos/umamao/umamao","owner":{"avatar_url":"https://secure.gravatar.com/avatar/6e8c652660d2d3de83c2c313a26f00f8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"6e8c652660d2d3de83c2c313a26f00f8","url":"https://api.github.com/users/umamao","login":"umamao","id":331194},"html_url":"https://github.com/umamao/umamao","description":"Free and open source Q&A software, written in Ruby, Rails, MongoMapper, and MongoDB.","size":2032,"id":827251,"git_url":"git://github.com/umamao/umamao.git","watchers":33,"created_at":"2010-08-09T20:00:45Z","ssh_url":"git@github.com:umamao/umamao.git"},"user":{"avatar_url":"https://secure.gravatar.com/avatar/6e8c652660d2d3de83c2c313a26f00f8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"6e8c652660d2d3de83c2c313a26f00f8","url":"https://api.github.com/users/umamao","login":"umamao","id":331194},"label":"umamao:dev","sha":"a011d0c468bcc3c280dfb0e9bc1a55744d73176d"},"commits":25,"closed_at":"2011-11-01T17:41:39Z","url":"https://api.github.com/repos/umamao/umamao/pulls/310","additions":144,"merged":true,"head":{"ref":"search-results-news-items","repo":{"name":"umamao","pushed_at":"2011-11-01T17:41:39Z","fork":true,"master_branch":null,"homepage":"http://umamao.com","open_issues":3,"clone_url":"https://github.com/umamao/umamao.git","updated_at":"2011-11-01T17:41:39Z","svn_url":"https://svn.github.com/umamao/umamao","language":"Ruby","private":false,"forks":11,"url":"https://api.github.com/repos/umamao/umamao","owner":{"avatar_url":"https://secure.gravatar.com/avatar/6e8c652660d2d3de83c2c313a26f00f8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"6e8c652660d2d3de83c2c313a26f00f8","url":"https://api.github.com/users/umamao","login":"umamao","id":331194},"html_url":"https://github.com/umamao/umamao","description":"Free and open source Q&A software, written in Ruby, Rails, MongoMapper, and MongoDB.","size":2032,"id":827251,"git_url":"git://github.com/umamao/umamao.git","watchers":33,"created_at":"2010-08-09T20:00:45Z","ssh_url":"git@github.com:umamao/umamao.git"},"user":{"avatar_url":"https://secure.gravatar.com/avatar/6e8c652660d2d3de83c2c313a26f00f8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"6e8c652660d2d3de83c2c313a26f00f8","url":"https://api.github.com/users/umamao","login":"umamao","id":331194},"label":"umamao:search-results-news-items","sha":"b9e0cb82c3bea652773c217e089a125131df6c95"},"body":"News items now belongs to search results and not to answers. This patch adds the associations and hooks to SearchResult and remove the hooks from Answer. The association in Answer must be removed after the rake task that deletes the Answer's news updates, otherwise Umamão will crash, so another patch must be sent later.\r\n\r\nAfter applying this patch, two rake tasks in it must be run: one that deletes the answers' news items and another one that creates news items for search results.","merged_at":"2011-11-01T17:41:39Z","issue_url":"https://github.com/umamao/umamao/issues/310","review_comments":12,"html_url":"https://github.com/umamao/umamao/pull/310","_links":{"comments":{"href":"https://api.github.com/repos/umamao/umamao/issues/310/comments"},"html":{"href":"https://github.com/umamao/umamao/pull/310"},"review_comments":{"href":"https://api.github.com/repos/umamao/umamao/pulls/310/comments"},"self":{"href":"https://api.github.com/repos/umamao/umamao/pulls/310"}},"number":310,"title":"News items for search results","mergeable":null,"id":412613,"changed_files":17,"patch_url":"https://github.com/umamao/umamao/pull/310.patch","created_at":"2011-10-18T19:05:42Z"},"action":"closed","number":310}