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 ed72979 + 7d89e26 commit ac3a23fCopy full SHA for ac3a23f
README.md
@@ -251,11 +251,11 @@ BlogSerializer.new(object, key_format: :lower_camel)
251
252
You can specify that serializers use unsuffixed names as association keys by default.
253
254
-`````ruby
+```ruby
255
ActiveModel::Serializer.setup do |config|
256
config.default_key_type = :name
257
end
258
-````
+```
259
260
This will build association keys like `comments` or `author` instead of `comment_ids` or `author_id`.
261
@@ -932,7 +932,7 @@ now generates:
932
class PostSerializer < ApplicationSerializer
933
attributes :id
934
935
936
937
# Design and Implementation Guidelines
938
0 commit comments