Sha256: 991621491ddc8d6879a896129930b89ae662193580f286e95ea9b933338edcc7

Contents?: true

Size: 371 Bytes

Versions: 12

Compression:

Stored size: 371 Bytes

Contents

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

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
active_model_serializers-0.10.0.rc3 lib/active_model/serializer/configuration.rb
cheap_ams-0.10.11 lib/active_model/serializer/configuration.rb
cheap_ams-0.10.10 lib/active_model/serializer/configuration.rb
cheap_ams-0.10.8 lib/active_model/serializer/configuration.rb
cheap_ams-0.10.7 lib/active_model/serializer/configuration.rb
cheap_ams-0.10.6 lib/active_model/serializer/configuration.rb
cheap_ams-0.10.5 lib/active_model/serializer/configuration.rb
cheap_ams-0.10.4 lib/active_model/serializer/configuration.rb
cheap_ams-0.10.3 lib/active_model/serializer/configuration.rb
cheap_ams-0.10.2 lib/active_model/serializer/configuration.rb
cheap_ams-0.10.1 lib/active_model/serializer/configuration.rb
cheap_ams-0.10.0.rc2 lib/active_model/serializer/configuration.rb