Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update comment of Virtus::Attribute::Hash#new_hash

Issue #98
  • Loading branch information...
commit 17a62408dc2c982f7689a8ae2ca21e4df5f4ee27 1 parent 5ab13ce
@greyblake greyblake authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/virtus/attribute/hash.rb
View
2  lib/virtus/attribute/hash.rb
@@ -119,7 +119,7 @@ def new_hash
def []=(key, value) # def []=(key, value)
coerced_key = Virtus::Coercion[key.class].#{key_coercion_method}(key) # coerced_key = Virtus::Coercion[key.class].to_sym(key)
coerced_value = Virtus::Coercion[value.class].#{value_coercion_method}(value) # coerced_value = Virtus::Coercion[value.class].to_f(value)
- super(coerced_key, coerced_value) # super(coerce_key, coerce_value)
+ super(coerced_key, coerced_value) # super(coerced_key, coerced_value)
end # end
eorb
Please sign in to comment.
Something went wrong with that request. Please try again.