diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-03-05 23:19:00 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-03-06 08:53:20 +0900 |
commit | 6ec2e8ac220024c6e8159c81dbe76ef8e812ed6f (patch) | |
tree | 7becec73c2a10bf0725ca93e7838e1020a2bef8b /activerecord/lib/active_record | |
parent | d731d6366ae68c790ef79ff66b2d2d41f5767cc3 (diff) | |
download | rails-6ec2e8ac220024c6e8159c81dbe76ef8e812ed6f.tar.gz rails-6ec2e8ac220024c6e8159c81dbe76ef8e812ed6f.tar.bz2 rails-6ec2e8ac220024c6e8159c81dbe76ef8e812ed6f.zip |
Fix `deserialize` with JSON array
Fixes #28285.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb b/activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb index e1a75f8e5e..a73a8c1726 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb @@ -23,7 +23,7 @@ module ActiveRecord when ::String type_cast_array(@pg_decoder.decode(value), :deserialize) when Data - deserialize(value.values) + type_cast_array(value.values, :deserialize) else super end |