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.
1 parent c54532a commit 29166b2Copy full SHA for 29166b2
README.md
@@ -234,7 +234,7 @@ end
234
235
You can specify that serializers use the lower-camel key format at the config, class or instance level.
236
237
-```ruby
+````ruby
238
239
ActiveModel::Serializer.setup do |config|
240
config.key_format = :lower_camel
@@ -245,13 +245,13 @@ class BlogLowerCamelSerializer < ActiveModel::Serializer
245
end
246
247
BlogSerializer.new(object, key_format: :lower_camel)
248
-```
+````
249
250
## Changing the default association key type
251
252
You can specify that serializers use unsuffixed names as association keys by default.
253
254
-`````ruby
255
256
config.default_key_type = :name
257
0 commit comments