1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib
Jonathan Hefner 73bdebdcd5 Map through subtype in PostgreSQL::OID::Array
This changes `PostgreSQL::OID::Array#map` to invoke `subtype.map` for
each element of the array.  When `subtype` is a scalar, `subtype.map`
(as implemented by `ActiveModel::Type::Value#map`) will simply call the
block with the element.  When `subtype` is a non-scalar, such as a
`PostgreSQL::OID::Range`, `subtype.map` ensures that the nested scalar
values are properly mapped.

Partially reverts #45348, as an alternative fix.
Fixes #46371.
Closes #46372.

Co-authored-by: fatkodima <fatkodima123@gmail.com>
2022-10-28 21:32:08 -05:00
..
active_record Map through subtype in PostgreSQL::OID::Array 2022-10-28 21:32:08 -05:00
arel Speed up arel visitor dispatch 2022-09-02 12:33:20 -07:00
rails/generators Delegate application record generator description to orm hooked generator. 2022-09-08 18:19:51 -05:00
active_record.rb Add ActiveRecord.deprecator 2022-10-25 14:23:08 -05:00
arel.rb Merge PR #40491 2021-10-14 20:46:08 +00:00