This commit is contained in:
albert
2013-03-25 22:15:12 -04:00
parent 78900c4d38
commit 5239309d04

View File

@@ -14,11 +14,11 @@ class WikiPagePresenter
end
def consequent_tag_aliases
@consequent_tag_aliases ||= TagAlias.where("consequent_name = ?", wiki_page.title)
@consequent_tag_aliases ||= TagAlias.where("status = 'active' and consequent_name = ?", wiki_page.title).all
end
def antecedent_tag_alias
@antecedent_tag_alias ||= TagAlias.find_by_antecedent_name(wiki_page.title)
@antecedent_tag_alias ||= TagAlias.where("status = 'active' and antecedent_name = ?", wiki_page.title).first
end
# Produce a formatted page that shows the difference between two versions of a page.