class RESTFramework::NativeModelSerializer

:nocov: Alias NativeModelSerializer -> NativeSerializer.

Public Class Methods

new(**kwargs) click to toggle source
Calls superclass method RESTFramework::NativeSerializer::new
# File lib/rest_framework/serializers.rb, line 141
  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