We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1d82260 + c8839f4 commit d466466Copy full SHA for d466466
test/fixtures/poro.rb
@@ -85,10 +85,6 @@ def custom_options
85
SpammyPostSerializer = Class.new(ActiveModel::Serializer) do
86
attributes :id
87
has_many :related
88
-
89
- def self.root_name
90
- 'posts'
91
- end
92
end
93
94
CommentSerializer = Class.new(ActiveModel::Serializer) do
@@ -193,10 +189,6 @@ def json_key
193
189
194
190
195
191
PostPreviewSerializer = Class.new(ActiveModel::Serializer) do
196
197
198
199
200
192
attributes :title, :body, :id
201
202
has_many :comments, serializer: CommentPreviewSerializer
0 commit comments