mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
Merge pull request #1427 from brigade/defunct-root-name
Remove defunct .root_name from test fixtures
This commit is contained in:
commit
d466466660
8
test/fixtures/poro.rb
vendored
8
test/fixtures/poro.rb
vendored
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user