Merge pull request #2826 from r888888888/related-tags-html

Related tags html page (fixes #2750)
This commit is contained in:
Albert Yi
2017-01-09 18:11:22 -08:00
committed by GitHub
4 changed files with 43 additions and 0 deletions

View File

@@ -26,6 +26,10 @@ class RelatedTagQuery
results
end
def tags_for_html
map_with_category_data(tags)
end
def to_json
{:query => query, :category => category, :tags => map_with_category_data(tags), :wiki_page_tags => map_with_category_data(wiki_page_tags)}.to_json
end