Sha256: 05a1a00b685d5c21338345c6b6101c630faddd8e4dc567aa137d6fee87842635

Contents?: true

Size: 465 Bytes

Versions: 13

Compression:

Stored size: 465 Bytes

Contents

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

13 entries across 13 versions & 2 rubygems

Version Path
active_model_serializers-0.10.8 lib/active_model/serializer/adapter/json_api.rb
active_model_serializers-0.10.7 lib/active_model/serializer/adapter/json_api.rb
active_model_serializers-0.10.6 lib/active_model/serializer/adapter/json_api.rb
active_model_serializers-0.10.5 lib/active_model/serializer/adapter/json_api.rb
active_model_serializers-0.10.4 lib/active_model/serializer/adapter/json_api.rb
agi_active_model_serializers-0.10.9 lib/active_model/serializer/adapter/json_api.rb
agi_active_model_serializers-0.10.8 lib/active_model/serializer/adapter/json_api.rb
agi_active_model_serializers-0.10.7 lib/active_model/serializer/adapter/json_api.rb
active_model_serializers-0.10.3 lib/active_model/serializer/adapter/json_api.rb
active_model_serializers-0.10.2 lib/active_model/serializer/adapter/json_api.rb
active_model_serializers-0.10.1 lib/active_model/serializer/adapter/json_api.rb
active_model_serializers-0.10.0 lib/active_model/serializer/adapter/json_api.rb
active_model_serializers-0.10.0.rc5 lib/active_model/serializer/adapter/json_api.rb