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