Skip to content
Browse files

Merge pull request #7631 from jeremyevans/patch-1

Freeze columns before using them as hash keys
  • Loading branch information...
2 parents 71b8851 + 3aef5ce commit 2004ef2044eae3922dbedf77a7e5f9b73a211a23 @tenderlove tenderlove committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/result.rb
View
2 activerecord/lib/active_record/result.rb
@@ -11,7 +11,7 @@ class Result
attr_reader :columns, :rows, :column_types
def initialize(columns, rows, column_types = {})
- @columns = columns
+ @columns = columns.map{|c| c.freeze}
@rows = rows
@hash_rows = nil
@column_types = column_types

0 comments on commit 2004ef2

Please sign in to comment.
Something went wrong with that request. Please try again.