diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-08 09:43:42 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-08 09:43:42 -0300 |
commit | 0792d3e78b8aea5bf1c1401e9a33f2dd3bae4420 (patch) | |
tree | 4602e6aee5c4be559b73f90cd4eb27df7310144c /activerecord | |
parent | 336be2bdf7dfa1b31879d0ab27e5f3101b351923 (diff) | |
parent | 57beebaade819bfc0d0b3d7118448a1ea4c9e042 (diff) | |
download | rails-0792d3e78b8aea5bf1c1401e9a33f2dd3bae4420.tar.gz rails-0792d3e78b8aea5bf1c1401e9a33f2dd3bae4420.tar.bz2 rails-0792d3e78b8aea5bf1c1401e9a33f2dd3bae4420.zip |
Merge pull request #16071 from sgrif/sg-pg-type-cast
Remove PG's definition of `type_cast`
Diffstat (limited to 'activerecord')
-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 d2e12417a6..5359c5b666 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb @@ -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) |