aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters
diff options
context:
space:
mode:
authorŁukasz Strzałkowski <lukasz.strzalkowski@gmail.com>2010-07-17 17:42:17 +0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-19 23:44:50 +0800
commit661fd98aad027b6171253828ed89115f30fac46f (patch)
tree46fb324e4b68f98754a05faf1f3b72fc6af3f1e8 /activerecord/test/cases/adapters
parent7637b7184a990ae51f3ab10e2af99ff88cb633ea (diff)
downloadrails-661fd98aad027b6171253828ed89115f30fac46f.tar.gz
rails-661fd98aad027b6171253828ed89115f30fac46f.tar.bz2
rails-661fd98aad027b6171253828ed89115f30fac46f.zip
Make use of redefine_method, removed some more redefining warnings
Diffstat (limited to 'activerecord/test/cases/adapters')
-rw-r--r--activerecord/test/cases/adapters/mysql/active_schema_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/mysql/active_schema_test.rb b/activerecord/test/cases/adapters/mysql/active_schema_test.rb
index 6e6645511c..ed4efdc1c0 100644
--- a/activerecord/test/cases/adapters/mysql/active_schema_test.rb
+++ b/activerecord/test/cases/adapters/mysql/active_schema_test.rb
@@ -101,6 +101,7 @@ class ActiveSchemaTest < ActiveRecord::TestCase
#we need to actually modify some data, so we make execute point to the original method
ActiveRecord::ConnectionAdapters::MysqlAdapter.class_eval do
alias_method :execute_with_stub, :execute
+ remove_method :execute
alias_method :execute, :execute_without_stub
end
yield