aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorLars Kanis <kanis@comcard.de>2008-08-27 22:49:50 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2008-08-27 22:51:10 -0700
commitc2068d14d29ec767c681798b3814f0a8e22fb0ff (patch)
tree83fc13ffbfc652a171158dc342386798e85b5f77 /activerecord
parenta444c782125e10ead6227f7cc57b2f5c739111f2 (diff)
downloadrails-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')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb2
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)