aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/hash/conversions.rb
diff options
context:
space:
mode:
authorPablo Cantero <pablo@pablocantero.com>2013-07-27 13:54:39 -0300
committerPablo Cantero <pablo@pablocantero.com>2013-07-27 19:25:01 -0300
commit7ed8934f089dba8cbb90a98920cd4242ba5e0fd3 (patch)
tree195b2a7c9513bdc25b8c4e43b6514b45278f064f /activesupport/lib/active_support/core_ext/hash/conversions.rb
parent4236d8f05631ab75b74850546d0253d41d4d48df (diff)
downloadrails-7ed8934f089dba8cbb90a98920cd4242ba5e0fd3.tar.gz
rails-7ed8934f089dba8cbb90a98920cd4242ba5e0fd3.tar.bz2
rails-7ed8934f089dba8cbb90a98920cd4242ba5e0fd3.zip
Minor refactor - Uses Enumerable#to_a instead of iterate and add to an
array
Diffstat (limited to 'activesupport/lib/active_support/core_ext/hash/conversions.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/hash/conversions.rb1
1 files changed, 0 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 8930376ac8..fbf2877117 100644
--- a/activesupport/lib/active_support/core_ext/hash/conversions.rb
+++ b/activesupport/lib/active_support/core_ext/hash/conversions.rb
@@ -235,7 +235,6 @@ module ActiveSupport
value.map! { |i| deep_to_h(i) }
value.length > 1 ? value : value.first
end
-
end
end