Permalink
Browse files

Show deprecated messages only when target database adapters defined

  • Loading branch information...
yahonda authored and kennyj committed Apr 1, 2013
1 parent 0074d7d commit 67994ef2f9d6c529ec88c28c884681eafa335309
@@ -23,7 +23,7 @@ def initialize(configuration)
ActiveSupport::Deprecation.silence { super }
end
end
- ActiveRecord::Tasks::DatabaseTasks.stubs(:class_for_adapter).returns(@tasks)
+ ActiveRecord::Tasks::DatabaseTasks.stubs(:class_for_adapter).returns(@tasks) unless defined? ActiveRecord::ConnectionAdapters::FirebirdAdapter
end
end
@@ -17,7 +17,7 @@ def initialize(configuration)
ActiveSupport::Deprecation.silence { super }
end
end
- ActiveRecord::Tasks::DatabaseTasks.stubs(:class_for_adapter).returns(@tasks)
+ ActiveRecord::Tasks::DatabaseTasks.stubs(:class_for_adapter).returns(@tasks) unless defined? ActiveRecord::ConnectionAdapters::OracleAdapter
end
end
@@ -20,7 +20,7 @@ def initialize(configuration)
ActiveSupport::Deprecation.silence { super }
end
end
- ActiveRecord::Tasks::DatabaseTasks.stubs(:class_for_adapter).returns(@tasks)
+ ActiveRecord::Tasks::DatabaseTasks.stubs(:class_for_adapter).returns(@tasks) unless defined? ActiveRecord::ConnectionAdapters::SQLServerAdapter
end
end

0 comments on commit 67994ef

Please sign in to comment.