1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #16071 from sgrif/sg-pg-type-cast

Remove PG's definition of `type_cast`
This commit is contained in:
Rafael Mendonça França 2014-07-08 09:43:42 -03:00
commit 0792d3e78b

View file

@ -42,21 +42,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)