diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-07-23 15:21:39 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-07-23 15:21:39 -0500 |
commit | 3fe32c355453f517acfda48a87edf2d6928a381a (patch) | |
tree | df719eb6e9bd7e14ef37b10a52107ddfef35da49 /activesupport/lib/active_support/ordered_hash.rb | |
parent | abe61054af9aaceb546adfd629c50a027862a521 (diff) | |
download | rails-3fe32c355453f517acfda48a87edf2d6928a381a.tar.gz rails-3fe32c355453f517acfda48a87edf2d6928a381a.tar.bz2 rails-3fe32c355453f517acfda48a87edf2d6928a381a.zip |
Remove unneccesary map chaining
Diffstat (limited to 'activesupport/lib/active_support/ordered_hash.rb')
-rw-r--r-- | activesupport/lib/active_support/ordered_hash.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/ordered_hash.rb b/activesupport/lib/active_support/ordered_hash.rb index 68f4bd66da..7f70628933 100644 --- a/activesupport/lib/active_support/ordered_hash.rb +++ b/activesupport/lib/active_support/ordered_hash.rb @@ -6,7 +6,7 @@ end require 'yaml' YAML.add_builtin_type("omap") do |type, val| - ActiveSupport::OrderedHash[val.map(&:to_a).map(&:first)] + ActiveSupport::OrderedHash[val.map{ |v| v.to_a.first }] end module ActiveSupport |