Sha256: 17def06c1703f295cfb977f490ee4e969b1f596781cc7975eea77458afc58a03

Contents?: true

Size: 819 Bytes

Versions: 8

Compression:

Stored size: 819 Bytes

Contents

# frozen_string_literal: true

require 'active_model_serializers/adapter'
require 'active_model_serializers/deprecate'

module ActiveModel
  class Serializer
    # @deprecated Use ActiveModelSerializers::Adapter instead
    module Adapter
      class << self
        extend ActiveModelSerializers::Deprecate

        DEPRECATED_METHODS = [:create, :adapter_class, :adapter_map, :adapters, :register, :lookup].freeze
        DEPRECATED_METHODS.each do |method|
          delegate_and_deprecate method, ActiveModelSerializers::Adapter
        end
      end
    end
  end
end

require 'active_model/serializer/adapter/base'
require 'active_model/serializer/adapter/null'
require 'active_model/serializer/adapter/attributes'
require 'active_model/serializer/adapter/json'
require 'active_model/serializer/adapter/json_api'

Version data entries

8 entries across 8 versions & 2 rubygems

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