Permalink
Browse files

rake tasks such as db:test:clone are now only redefined by oracle_enh…

…anced only if it is the adapter currently in use.

The reason for this fix is explained here : 

http://groups.google.com/group/oracle-enhanced/browse_thread/thread/86198a7ce6b7d8e4
  • Loading branch information...
antonjenkins committed Jun 26, 2009
1 parent 7696a29 commit 01b016cafb9e18486724a04a999e63afd91ea814
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/active_record/connection_adapters/oracle_enhanced_tasks.rb
@@ -1,5 +1,5 @@
# RSI: implementation idea taken from JDBC adapter
-if defined?(Rake.application) && Rake.application
+if defined?(Rake.application) && Rake.application && ActiveRecord::Base.configurations[RAILS_ENV]['adapter'] == 'oracle_enhanced'
oracle_enhanced_rakefile = File.dirname(__FILE__) + "/oracle_enhanced.rake"
if Rake.application.lookup("environment")
# rails tasks already defined; load the override tasks now

0 comments on commit 01b016c

Please sign in to comment.