Class: RESTFramework::NativeModelSerializer

Inherits:
NativeSerializer show all
Defined in:
lib/rest_framework/serializers.rb

Overview

:nocov: Alias NativeModelSerializer -> NativeSerializer.

Instance Method Summary collapse

Methods inherited from NativeSerializer

#[], [], #[]=, []=, #get_action, #get_controller_native_serializer_config, #get_local_native_serializer_config, #get_serializer_config, #serialize

Constructor Details

#initialize(**kwargs) ⇒ NativeModelSerializer

Returns a new instance of NativeModelSerializer.



149
150
151
152
153
154
155
156
157
# File 'lib/rest_framework/serializers.rb', line 149

def initialize(**kwargs)
  super
  ActiveSupport::Deprecation.warn(
    <<~MSG.split("\n").join(' ')
      RESTFramework::NativeModelSerializer is deprecated and will be removed in future versions of
      REST Framework; you should use RESTFramework::NativeSerializer instead.
    MSG
  )
end