/artists: only include domains in /artists/1234.json, not /artists.json.

This commit is contained in:
evazion
2017-05-14 10:33:28 -05:00
parent 78b08d8394
commit 2c29a7ac19
2 changed files with 1 additions and 12 deletions

View File

@@ -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

View File

@@ -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,