Merge pull request #2923 from evazion/feat-source-xml

Add /sources.xml endpoint; include backtraces in json
This commit is contained in:
Albert Yi
2017-03-20 12:27:07 -07:00
committed by GitHub
3 changed files with 10 additions and 19 deletions

View File

@@ -56,7 +56,7 @@ module Sources
WikiPage.other_names_match(untranslated_tags).map{|wiki_page| [wiki_page.title, wiki_page.category_name]}
end
def to_json
def to_h
return {
:artist_name => artist_name,
:profile_url => profile_url,
@@ -71,7 +71,7 @@ module Sources
:title => artist_commentary_title,
:description => artist_commentary_desc,
}
}.to_json
}
end
def available?