mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Rename FlattenJson to Attributes (allow plural adapter names)
This commit is contained in:
@@ -6,7 +6,7 @@ module ActiveModel
|
||||
|
||||
included do |base|
|
||||
base.config.array_serializer = ActiveModel::Serializer::ArraySerializer
|
||||
base.config.adapter = :flatten_json
|
||||
base.config.adapter = :attributes
|
||||
base.config.jsonapi_resource_type = :plural
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user