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