mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 23:06:50 +00:00
Use ActiveSupport::Deprecation.warn instead of warn
This commit is contained in:
parent
81080c230e
commit
05ec509e1c
@ -20,7 +20,7 @@ module ActiveModel
|
|||||||
def embed(type, options={})
|
def embed(type, options={})
|
||||||
CONFIG.embed = type
|
CONFIG.embed = type
|
||||||
CONFIG.include = true if options[:include]
|
CONFIG.include = true if options[:include]
|
||||||
warn <<-WARN
|
ActiveSupport::Deprecation.warn <<-WARN
|
||||||
** Notice: embed is deprecated. **
|
** Notice: embed is deprecated. **
|
||||||
The use of .embed method on a Serializer will be soon removed, as this should have a global scope and not a class scope.
|
The use of .embed method on a Serializer will be soon removed, as this should have a global scope and not a class scope.
|
||||||
Please use the global .setup method instead:
|
Please use the global .setup method instead:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user