Merge pull request #1427 from brigade/defunct-root-name

Remove defunct .root_name from test fixtures
This commit is contained in:
Benjamin Fleischer 2016-01-12 17:25:49 -06:00
commit d466466660

View File

@ -85,10 +85,6 @@ end
SpammyPostSerializer = Class.new(ActiveModel::Serializer) do SpammyPostSerializer = Class.new(ActiveModel::Serializer) do
attributes :id attributes :id
has_many :related has_many :related
def self.root_name
'posts'
end
end end
CommentSerializer = Class.new(ActiveModel::Serializer) do CommentSerializer = Class.new(ActiveModel::Serializer) do
@ -193,10 +189,6 @@ AuthorPreviewSerializer = Class.new(ActiveModel::Serializer) do
end end
PostPreviewSerializer = Class.new(ActiveModel::Serializer) do PostPreviewSerializer = Class.new(ActiveModel::Serializer) do
def self.root_name
'posts'
end
attributes :title, :body, :id attributes :title, :body, :id
has_many :comments, serializer: CommentPreviewSerializer has_many :comments, serializer: CommentPreviewSerializer