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