umamao/umamao — pull request #310 by abgrilo (2011-10-18 19:05:42+00:00)
Title: News items for search results

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.

After 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.