Skip to content

Commit 79c3f73

Browse files
larskanisjeremy
authored andcommitted
PostgreSQL: fix quote_string for certain old pg drivers. [rails#94 state:resolved]
1 parent d356987 commit 79c3f73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def quote_string(s) #:nodoc:
346346
# There are some incorrectly compiled postgres drivers out there
347347
# that don't define PGconn.escape.
348348
self.class.instance_eval do
349-
undef_method(:quote_string)
349+
remove_method(:quote_string)
350350
end
351351
end
352352
quote_string(s)

0 commit comments

Comments
 (0)