mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
14 lines
319 B
Ruby
14 lines
319 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
|
|
end
|
|
end
|
|
end
|
|
end
|