fixes #1178
This commit is contained in:
@@ -42,7 +42,14 @@ class ArtistsController < ApplicationController
|
||||
def show
|
||||
@artist = Artist.find(params[:id])
|
||||
@post_set = PostSets::Artist.new(@artist)
|
||||
respond_with(@artist)
|
||||
respond_with(@artist) do |format|
|
||||
format.xml do
|
||||
render :xml => @artist.to_xml(:include => [:urls])
|
||||
end
|
||||
format.json do
|
||||
render :json => @artist.to_json(:include => [:urls])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def create
|
||||
|
||||
@@ -67,7 +67,7 @@ class Artist < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def other_names_array
|
||||
other_names.try(:split, / /)
|
||||
other_names.try(:split, /\s/)
|
||||
end
|
||||
|
||||
def other_names_comma
|
||||
|
||||
Reference in New Issue
Block a user