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:
parent
97ca81385e
commit
2742162072
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue