Skip to content
Browse files

make a throwaway value equals to _ to avoid warnings

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 8289661 commit 85980852a03f8e01c4079e21a429589380cf0d64 @spastorino spastorino committed with josevalim Jul 23, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/hash/conversions.rb
View
2 activesupport/lib/active_support/core_ext/hash/conversions.rb
@@ -83,7 +83,7 @@ def typecast_xml_value(value)
case value.class.to_s
when 'Hash'
if value['type'] == 'array'
- child_key, entries = Array.wrap(value.detect { |k,v| k != 'type' }) # child_key is throwaway
+ _, entries = Array.wrap(value.detect { |k,v| k != 'type' })
if entries.nil? || (c = value['__content__'] && c.blank?)
[]
else

0 comments on commit 8598085

Please sign in to comment.
Something went wrong with that request. Please try again.