Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #7631 from jeremyevans/patch-1

Freeze columns before using them as hash keys
  • Loading branch information...
commit 2004ef2044eae3922dbedf77a7e5f9b73a211a23 2 parents 71b8851 + 3aef5ce
@tenderlove tenderlove authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.