lib/volt/models/model.rb
def expand!
    if attributes.nil?
      @attributes = {}
      if @parent
        @parent.expand!

        @parent.send(:"#{@path.last}=", self)
      end
    end
  end
# If this model is nil, it makes it into a hash model, then
# sets it up to track from the parent.
If this model is nil, it makes it into a hash model, then
sets it up to track from the parent.
If this model is nil it makes it into a hash model then sets it up to track from the parent .
def expand!
    if attributes.nil?
      @attributes = {}
      if @parent
        @parent.expand!
        @parent.send(:"#{@path.last}=", self)
      end
    end
  end
def expand! if attributes . nil? @attributes = { } if @parent @parent . expand! @parent . send ( :" #{ @path . last } = " , self ) end end end
If this model is nil, it makes it into a hash model, then
sets it up to track from the parent.
If this model is nil it makes it into a hash model then sets it up to track from the parent .