Class: RESTFramework::NativeModelSerializer
- Inherits:
-
NativeSerializer
- Object
- BaseSerializer
- NativeSerializer
- RESTFramework::NativeModelSerializer
- Defined in:
- lib/rest_framework/serializers.rb
Overview
:nocov: Alias NativeModelSerializer -> NativeSerializer.
Instance Attribute Summary
Attributes inherited from BaseSerializer
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ NativeModelSerializer
constructor
A new instance of NativeModelSerializer.
Methods inherited from NativeSerializer
#[], [], #[]=, []=, #_get_raw_serializer_config, #filter_except, filter_subconfig, #get_action, #get_controller_native_serializer_config, #get_local_native_serializer_config, #get_serializer_config, #serialize
Methods inherited from BaseSerializer
#serializable_hash, #serialize
Constructor Details
#initialize(**kwargs) ⇒ NativeModelSerializer
Returns a new instance of NativeModelSerializer.
197 198 199 200 201 202 203 204 205 |
# File 'lib/rest_framework/serializers.rb', line 197 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 |