require ActiveSupport deprecatation file before using deprecate method in database_statements

otherwise when using external ActiveRecord adapters (e.g. Oracle) database_statements might be loaded before active_support/core_ext/module/deprecation which results in NoMethodError (commit 60cf65def8 added "deprecate" call to database_statements.rb)
This commit is contained in:
Raimonds Simanovskis 2011-01-04 11:21:03 +02:00
parent 40afcade0d
commit 1d758d9086
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,5 @@
require 'active_support/core_ext/module/deprecation'
module ActiveRecord
module ConnectionAdapters # :nodoc:
module DatabaseStatements