mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Define root and root= as aliases of _root=
This commit is contained in:
@@ -7,11 +7,8 @@ module ActiveModel
|
||||
|
||||
class << self
|
||||
attr_accessor :_root
|
||||
|
||||
def root(root)
|
||||
@_root = root
|
||||
end
|
||||
alias root= root
|
||||
alias root _root=
|
||||
alias root= _root=
|
||||
end
|
||||
|
||||
def initialize(object, options={})
|
||||
|
||||
Reference in New Issue
Block a user