aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-07-23 00:43:39 -0300
committerJosé Valim <jose.valim@gmail.com>2010-07-24 01:19:55 +0200
commit85980852a03f8e01c4079e21a429589380cf0d64 (patch)
tree4f26adf4cef10e03482da3dfdf055351b94cd8c2
parent8289661903dd1b7fec84e10089f4a04c31965350 (diff)
downloadrails-85980852a03f8e01c4079e21a429589380cf0d64.tar.gz
rails-85980852a03f8e01c4079e21a429589380cf0d64.tar.bz2
rails-85980852a03f8e01c4079e21a429589380cf0d64.zip
make a throwaway value equals to _ to avoid warnings
Signed-off-by: José Valim <jose.valim@gmail.com>
-rw-r--r--activesupport/lib/active_support/core_ext/hash/conversions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/conversions.rb b/activesupport/lib/active_support/core_ext/hash/conversions.rb
index 565c9af7fb..2763af6121 100644
--- a/activesupport/lib/active_support/core_ext/hash/conversions.rb
+++ b/activesupport/lib/active_support/core_ext/hash/conversions.rb
@@ -83,7 +83,7 @@ class Hash
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