mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Add configuration option to set resource type to singular/plural with jsonapi.
This commit is contained in:
@@ -7,6 +7,7 @@ module ActiveModel
|
||||
included do |base|
|
||||
base.config.array_serializer = ActiveModel::Serializer::ArraySerializer
|
||||
base.config.adapter = :flatten_json
|
||||
base.config.jsonapi_resource_type = :plural
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user