aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/result.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-06-09 07:56:36 -0600
committerSean Griffin <sean@thoughtbot.com>2014-06-09 13:28:26 -0600
commit27421620724d8c0204014048b475592e44ee6a09 (patch)
tree431b815155ff1eab6f907577808652981fd68892 /activerecord/lib/active_record/result.rb
parent97ca81385eeda66925110a5d4d8c288977aac6eb (diff)
downloadrails-27421620724d8c0204014048b475592e44ee6a09.tar.gz
rails-27421620724d8c0204014048b475592e44ee6a09.tar.bz2
rails-27421620724d8c0204014048b475592e44ee6a09.zip
Use an actual identity type in AR::Result#identity_type
We should be able to rely on this object implenting the full type interface.
Diffstat (limited to 'activerecord/lib/active_record/result.rb')
-rw-r--r--activerecord/lib/active_record/result.rb2
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