/artists: only include domains in /artists/1234.json, not /artists.json.
This commit is contained in:
@@ -55,14 +55,7 @@ class ArtistsController < ApplicationController
|
||||
def show
|
||||
@artist = Artist.find(params[:id])
|
||||
@post_set = PostSets::Artist.new(@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
|
||||
respond_with(@artist, methods: [:domains], include: [:urls])
|
||||
end
|
||||
|
||||
def create
|
||||
|
||||
@@ -538,10 +538,6 @@ class Artist < ActiveRecord::Base
|
||||
super + [:other_names_index]
|
||||
end
|
||||
|
||||
def method_attributes
|
||||
super + [:domains]
|
||||
end
|
||||
|
||||
def legacy_api_hash
|
||||
return {
|
||||
:id => id,
|
||||
|
||||
Reference in New Issue
Block a user