Add alias_method ActiveModel::Serializer.root= to be consistency with ActiveModel::ArraySerializer

This commit is contained in:
Samnang Chhun
2012-11-20 00:29:00 +07:00
parent 6ca430cec3
commit 96ce310595
2 changed files with 6 additions and 0 deletions

View File

@@ -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?