fixes #1093
This commit is contained in:
@@ -14,11 +14,11 @@ class WikiPagePresenter
|
|||||||
end
|
end
|
||||||
|
|
||||||
def consequent_tag_aliases
|
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
|
end
|
||||||
|
|
||||||
def antecedent_tag_alias
|
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
|
end
|
||||||
|
|
||||||
# Produce a formatted page that shows the difference between two versions of a page.
|
# Produce a formatted page that shows the difference between two versions of a page.
|
||||||
|
|||||||
Reference in New Issue
Block a user