diff --git a/app/presenters/wiki_page_presenter.rb b/app/presenters/wiki_page_presenter.rb index 8797c15ce..31b9d22da 100644 --- a/app/presenters/wiki_page_presenter.rb +++ b/app/presenters/wiki_page_presenter.rb @@ -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.