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:
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user