1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

View file

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