mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Add alias_method ActiveModel::Serializer.root= to be consistency with ActiveModel::ArraySerializer
This commit is contained in:
@@ -204,6 +204,7 @@ module ActiveModel
|
||||
def root(name)
|
||||
self._root = name
|
||||
end
|
||||
alias_method :root=, :root
|
||||
|
||||
def inherited(klass) #:nodoc:
|
||||
return if klass.anonymous?
|
||||
|
||||
Reference in New Issue
Block a user