Sha256: 55cabce3c7c814c254e41bd388e3da0e2e7b74b71a0d3357c4058d2b54524748

Contents?: true

Size: 788 Bytes

Versions: 13

Compression:

Stored size: 788 Bytes

Contents

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

13 entries across 13 versions & 2 rubygems

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