mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 22:36:50 +00:00
17 lines
451 B
Ruby
17 lines
451 B
Ruby
module ActiveModel
|
|
class Serializer
|
|
module Configuration
|
|
include ActiveSupport::Configurable
|
|
extend ActiveSupport::Concern
|
|
|
|
# Configuration options may also be set in
|
|
# Serializers and Adapters
|
|
included do |base|
|
|
base.config.array_serializer = ActiveModel::Serializer::ArraySerializer
|
|
base.config.adapter = :attributes
|
|
base.config.jsonapi_resource_type = :plural
|
|
end
|
|
end
|
|
end
|
|
end
|