diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-09 16:31:25 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-09 16:31:25 -0300 |
commit | 254efb712ac10fd8e165fb34bb459f4abd59b213 (patch) | |
tree | 52f819d151461f7844868346b05c1fad52592146 /activerecord | |
parent | 14ecc5ef11812d7d528f0e4ca51f704b07404a97 (diff) | |
parent | 27421620724d8c0204014048b475592e44ee6a09 (diff) | |
download | rails-254efb712ac10fd8e165fb34bb459f4abd59b213.tar.gz rails-254efb712ac10fd8e165fb34bb459f4abd59b213.tar.bz2 rails-254efb712ac10fd8e165fb34bb459f4abd59b213.zip |
Merge pull request #15586 from sgrif/sg-identity-type
Use an actual identity type in AR::Result#identity_type
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/result.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/result.rb b/activerecord/lib/active_record/result.rb index 293189fa69..ae53f66d7a 100644 --- a/activerecord/lib/active_record/result.rb +++ b/activerecord/lib/active_record/result.rb @@ -31,7 +31,7 @@ module ActiveRecord class Result include Enumerable - IDENTITY_TYPE = Class.new { def type_cast(v); v; end }.new # :nodoc: + IDENTITY_TYPE = Type::Value.new # :nodoc: attr_reader :columns, :rows, :column_types |