From 42cb4db3397c03ca294af9e02677ca08e916c165 Mon Sep 17 00:00:00 2001 From: Toks Date: Fri, 5 Apr 2013 16:44:25 -0400 Subject: [PATCH] fixes #1204 --- app/controllers/artists_controller.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/controllers/artists_controller.rb b/app/controllers/artists_controller.rb index 46c8d4343..f6fcc5e15 100644 --- a/app/controllers/artists_controller.rb +++ b/app/controllers/artists_controller.rb @@ -15,7 +15,14 @@ class ArtistsController < ApplicationController def banned @artists = Artist.where("is_banned = ?", true).order("name") - respond_with(@artists) + respond_with(@artists) do |format| + format.xml do + render :xml => @artists.to_xml(:include => [:urls], :root => "artists") + end + format.json do + render :json => @artists.to_json(:include => [:urls]) + end + end end def ban