diff options
author | Lars Kanis <kanis@comcard.de> | 2008-08-27 22:49:50 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-08-27 22:51:10 -0700 |
commit | c2068d14d29ec767c681798b3814f0a8e22fb0ff (patch) | |
tree | 83fc13ffbfc652a171158dc342386798e85b5f77 /activerecord/lib | |
parent | a444c782125e10ead6227f7cc57b2f5c739111f2 (diff) | |
download | rails-c2068d14d29ec767c681798b3814f0a8e22fb0ff.tar.gz rails-c2068d14d29ec767c681798b3814f0a8e22fb0ff.tar.bz2 rails-c2068d14d29ec767c681798b3814f0a8e22fb0ff.zip |
PostgreSQL: fix quote_string for certain old pg drivers. [#94 state:resolved]
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 55c7da5b4f..0c2532f21d 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -380,7 +380,7 @@ module ActiveRecord # There are some incorrectly compiled postgres drivers out there # that don't define PGconn.escape. self.class.instance_eval do - undef_method(:quote_string) + remove_method(:quote_string) end end quote_string(s) |