mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 14:29:31 +00:00
15 lines
371 B
Ruby
15 lines
371 B
Ruby
module ActiveModel
|
|
class Serializer
|
|
module Configuration
|
|
include ActiveSupport::Configurable
|
|
extend ActiveSupport::Concern
|
|
|
|
included do |base|
|
|
base.config.array_serializer = ActiveModel::Serializer::ArraySerializer
|
|
base.config.adapter = :flatten_json
|
|
base.config.jsonapi_resource_type = :plural
|
|
end
|
|
end
|
|
end
|
|
end
|