diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-07-06 13:43:33 -0600 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-07-06 13:43:33 -0600 |
commit | 57beebaade819bfc0d0b3d7118448a1ea4c9e042 (patch) | |
tree | 3123657baf34cc757c5f7b9bdace9c802862cb3f | |
parent | 2f716694f20cd19464029513fb59440fd9000840 (diff) | |
download | rails-57beebaade819bfc0d0b3d7118448a1ea4c9e042.tar.gz rails-57beebaade819bfc0d0b3d7118448a1ea4c9e042.tar.bz2 rails-57beebaade819bfc0d0b3d7118448a1ea4c9e042.zip |
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.
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb | 15 |
1 files changed, 0 insertions, 15 deletions
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) |