lib/volt/models/model_hash_behaviour.rb
def to_h
    hash = {}
    attributes.each_pair do |key, value|
      hash[key] = deep_unwrap(value)
    end

    return hash
  end
# Convert the model to a hash all of the way down.
Convert the model to a hash all of the way down.
Convert the model to a hash all of the way down .
def to_h
    hash = {}
    attributes.each_pair do |key, value|
      hash[key] = deep_unwrap(value)
    end
    return hash
  end
def to_h hash = { } attributes . each_pair do | key , value | hash [ key ] = deep_unwrap ( value ) end return hash end
Convert the model to a hash all of the way down.
Convert the model to a hash all of the way down .