Sha256: 1a781210f458af9ef86cf90383aac301e6967d7236977ffa2bdad3962dce8802

Contents?: true

Size: 496 Bytes

Versions: 8

Compression:

Stored size: 496 Bytes

Contents

# frozen_string_literal: true

module ActiveModel
  class Serializer
    module Adapter
      class JsonApi < DelegateClass(ActiveModelSerializers::Adapter::JsonApi)
        def initialize(serializer, options = {})
          super(ActiveModelSerializers::Adapter::JsonApi.new(serializer, options))
        end
        class << self
          extend ActiveModelSerializers::Deprecate
          deprecate :new, 'ActiveModelSerializers::Adapter::JsonApi.new'
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
active_model_serializers-0.10.15 lib/active_model/serializer/adapter/json_api.rb
active_model_serializers-0.10.14 lib/active_model/serializer/adapter/json_api.rb
active_model_serializers-0.10.13 lib/active_model/serializer/adapter/json_api.rb
active_model_serializers-0.10.12 lib/active_model/serializer/adapter/json_api.rb
active_model_serializers-0.10.11 lib/active_model/serializer/adapter/json_api.rb
active_model_serializers-0.10.10 lib/active_model/serializer/adapter/json_api.rb
active_model_serializers_custom-0.10.90 lib/active_model/serializer/adapter/json_api.rb
active_model_serializers-0.10.9 lib/active_model/serializer/adapter/json_api.rb