diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-06-22 16:00:02 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-22 21:16:59 +0200 |
commit | f61ac899479543859cab67e4ad833284dbf982e9 (patch) | |
tree | 19a39148441f71867a28ad11e494fa8dad2fc657 /activerecord/test/cases/active_schema_test_postgresql.rb | |
parent | 64987d6711747495cb874aa0f5ab827ca01b4009 (diff) | |
download | rails-f61ac899479543859cab67e4ad833284dbf982e9.tar.gz rails-f61ac899479543859cab67e4ad833284dbf982e9.tar.bz2 rails-f61ac899479543859cab67e4ad833284dbf982e9.zip |
Avoid method redefined warning
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/test/cases/active_schema_test_postgresql.rb')
-rw-r--r-- | activerecord/test/cases/active_schema_test_postgresql.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/activerecord/test/cases/active_schema_test_postgresql.rb b/activerecord/test/cases/active_schema_test_postgresql.rb index 4f04c6735c..f106e14319 100644 --- a/activerecord/test/cases/active_schema_test_postgresql.rb +++ b/activerecord/test/cases/active_schema_test_postgresql.rb @@ -10,7 +10,10 @@ class PostgresqlActiveSchemaTest < Test::Unit::TestCase end def teardown - ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.send(:alias_method, :execute, :real_execute) + ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.class_eval do + remove_method :execute + alias_method :execute, :real_execute + end end def test_create_database_with_encoding |