Use an actual identity type in AR::Result#identity_type

We should be able to rely on this object implenting the full type
interface.
This commit is contained in:
Sean Griffin 2014-06-09 07:56:36 -06:00
parent 97ca81385e
commit 2742162072

@ -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