diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-21 14:42:42 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-21 14:42:42 -0700 |
commit | 88b1d51f825ec7369b2cc5f5004f662dd80a6057 (patch) | |
tree | 5b2262a2c6181473621d6f989df81b49f4f8c5e7 /activerecord | |
parent | b7e4a97ab54f914bc464d9b3c7d8e579dd402771 (diff) | |
download | rails-88b1d51f825ec7369b2cc5f5004f662dd80a6057.tar.gz rails-88b1d51f825ec7369b2cc5f5004f662dd80a6057.tar.bz2 rails-88b1d51f825ec7369b2cc5f5004f662dd80a6057.zip |
removing lolinject
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index e6c462dec1..1c54ac7710 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -2046,7 +2046,7 @@ module ActiveRecord end def extract_record(row) - column_names_with_alias.inject({}){|record, (cn, an)| record[cn] = row[an]; record} + Hash[column_names_with_alias.map{|cn, an| [cn, row[an]]}] end def record_id(row) |