From 9f5d62d7b1db2a7523ac05fcbeae902302293677 Mon Sep 17 00:00:00 2001 From: Toks Date: Sat, 21 Jun 2014 20:02:02 -0400 Subject: [PATCH] #1857 Display processing alias/implications on wikis --- app/presenters/wiki_page_presenter.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/presenters/wiki_page_presenter.rb b/app/presenters/wiki_page_presenter.rb index 9c7b01d90..cd45a0f3d 100644 --- a/app/presenters/wiki_page_presenter.rb +++ b/app/presenters/wiki_page_presenter.rb @@ -14,19 +14,19 @@ class WikiPagePresenter end def consequent_tag_aliases - @consequent_tag_aliases ||= TagAlias.where("status = 'active' and consequent_name = ?", wiki_page.title) + @consequent_tag_aliases ||= TagAlias.where("status in ('active', 'processing') and consequent_name = ?", wiki_page.title) end def antecedent_tag_alias - @antecedent_tag_alias ||= TagAlias.where("status = 'active' and antecedent_name = ?", wiki_page.title).first + @antecedent_tag_alias ||= TagAlias.where("status in ('active', 'processing') and antecedent_name = ?", wiki_page.title).first end def consequent_tag_implications - @consequent_tag_implications ||= TagImplication.where("status = 'active' and consequent_name = ?", wiki_page.title) + @consequent_tag_implications ||= TagImplication.where("status in ('active', 'processing') and consequent_name = ?", wiki_page.title) end def antecedent_tag_implications - @antecedent_tag_implications ||= TagImplication.where("status = 'active' and antecedent_name = ?", wiki_page.title) + @antecedent_tag_implications ||= TagImplication.where("status in ('active', 'processing') and antecedent_name = ?", wiki_page.title) end # Produce a formatted page that shows the difference between two versions of a page.