From 9ca6948f72bef56445030a60e346376a821dbc72 Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Tue, 17 Feb 2015 13:39:42 -0700 Subject: `type_cast_from_user` -> `cast` --- .../lib/active_record/connection_adapters/postgresql/oid/array.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/lib/active_record/connection_adapters') 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 ca9ceff5e4..fb4e0de2a8 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb @@ -33,11 +33,11 @@ module ActiveRecord end end - def type_cast_from_user(value) + def cast(value) if value.is_a?(::String) value = parse_pg_array(value) end - type_cast_array(value, :type_cast_from_user) + type_cast_array(value, :cast) end def serialize(value) -- cgit v1.2.3