class Song < ActiveRecord::Base; end
class Pop < Song; end
class Rock < Song; end
class SongSerializer
include FastJsonapi::ObjectSerializer
attribute :title
end
class PopSerializer < SongSerializer
attribute :description
end
class RockSerializer < SongSerializer
attribute :duration
end
AMS makes automatic lookup and returns JSON with items with different attributes(title, description for PopModel; title, duration for RockModel).
Is there any consideration of supporting this?
duplicate of https://github.com/Netflix/fast_jsonapi/issues/225
AMS makes automatic lookup and returns JSON with items with different attributes(
title, description
forPopModel
;title, duration
forRockModel
). Is there any consideration of supporting this?