proper fix for #725

show all antecedent implications on wiki instead of just the first
This commit is contained in:
Toks
2013-03-28 19:27:44 -04:00
parent 502de5a651
commit 12c27aec9d
2 changed files with 4 additions and 4 deletions

View File

@@ -25,8 +25,8 @@ class WikiPagePresenter
@consequent_tag_implications ||= TagImplication.where("status = 'active' and consequent_name = ?", wiki_page.title).all
end
def antecedent_tag_implication
@antecedent_tag_implication ||= TagImplication.where("status = 'active' and antecedent_name = ?", wiki_page.title).first
def antecedent_tag_implications
@antecedent_tag_implications ||= TagImplication.where("status = 'active' and antecedent_name = ?", wiki_page.title).all
end
# Produce a formatted page that shows the difference between two versions of a page.