diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-03-03 09:05:23 -0800 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-03-03 09:05:23 -0800 |
commit | 2aec357b7e8e310be107b479224524f12f83d5a5 (patch) | |
tree | fc8c2578c51ec629277c89762134a7f5466a0645 /activerecord/lib/active_record/relation | |
parent | f9e26940b3f76a80ce0dc9f10fc49061abee6c41 (diff) | |
parent | fa464681128b379ca224e01dcefbe683999f8438 (diff) | |
download | rails-2aec357b7e8e310be107b479224524f12f83d5a5.tar.gz rails-2aec357b7e8e310be107b479224524f12f83d5a5.tar.bz2 rails-2aec357b7e8e310be107b479224524f12f83d5a5.zip |
Merge pull request #4984 from raghunadhd/change_orderhash
Refactored code
Diffstat (limited to 'activerecord/lib/active_record/relation')
-rw-r--r-- | activerecord/lib/active_record/relation/calculations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/calculations.rb b/activerecord/lib/active_record/relation/calculations.rb index 510d01085d..c770d36a1c 100644 --- a/activerecord/lib/active_record/relation/calculations.rb +++ b/activerecord/lib/active_record/relation/calculations.rb @@ -299,7 +299,7 @@ module ActiveRecord key_records = Hash[key_records.map { |r| [r.id, r] }] end - ActiveSupport::OrderedHash[calculated_data.map do |row| + Hash[calculated_data.map do |row| key = group_columns.map { |aliaz, column| type_cast_calculated_value(row[aliaz], column) } |