fixes #1093
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user