Permalink
Browse files

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

Issue #98
  • Loading branch information...
1 parent 5ab13ce commit 17a62408dc2c982f7689a8ae2ca21e4df5f4ee27 @greyblake committed Sep 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 17a6240

Please sign in to comment.