From 57beebaade819bfc0d0b3d7118448a1ea4c9e042 Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Sun, 6 Jul 2014 13:43:33 -0600 Subject: Remove PG's definition of `type_cast` All cases except for `nil` in an array have been removed. `nil` in an array is handled by the Array type object. --- .../connection_adapters/postgresql/quoting.rb | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb b/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb index be598f997f..09c8f4d9d6 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb @@ -43,21 +43,6 @@ module ActiveRecord end end - def type_cast(value, column) - return super unless column - - case value - when NilClass - if column.array - value - else - super - end - else - super - end - end - # Quotes strings for use in SQL input. def quote_string(s) #:nodoc: @connection.escape(s) -- cgit v1.2.3