Deprecating usage of "require 'activerecord-import/<adapter_name>'" in favor of "require 'activerecord-import'".

This commit is contained in:
Zach Dennis 2010-09-26 17:06:37 -04:00
parent 90057c43eb
commit 163f5c64be
6 changed files with 27 additions and 2 deletions

View file

@ -1,2 +1,8 @@
warn <<-MSG
[DEPRECATION] loading activerecord-import via 'require "activerecord-import/<adapter-name>"'
is deprecated. Update to autorequire using 'require "activerecord-import"'. See
http://github.com/zdennis/activerecord-import/wiki/Requiring for more information
MSG
require File.expand_path(File.join(File.dirname(__FILE__), "/../activerecord-import")) require File.expand_path(File.join(File.dirname(__FILE__), "/../activerecord-import"))

View file

@ -1,2 +1,8 @@
warn <<-MSG
[DEPRECATION] loading activerecord-import via 'require "activerecord-import/<adapter-name>"'
is deprecated. Update to autorequire using 'require "activerecord-import"'. See
http://github.com/zdennis/activerecord-import/wiki/Requiring for more information
MSG
require File.expand_path(File.join(File.dirname(__FILE__), "/../activerecord-import")) require File.expand_path(File.join(File.dirname(__FILE__), "/../activerecord-import"))

View file

@ -1,2 +1,8 @@
warn <<-MSG
[DEPRECATION] loading activerecord-import via 'require "activerecord-import/<adapter-name>"'
is deprecated. Update to autorequire using 'require "activerecord-import"'. See
http://github.com/zdennis/activerecord-import/wiki/Requiring for more information
MSG
require File.expand_path(File.join(File.dirname(__FILE__), "/../activerecord-import")) require File.expand_path(File.join(File.dirname(__FILE__), "/../activerecord-import"))

View file

@ -1,2 +1,8 @@
warn <<-MSG
[DEPRECATION] loading activerecord-import via 'require "activerecord-import/<adapter-name>"'
is deprecated. Update to autorequire using 'require "activerecord-import"'. See
http://github.com/zdennis/activerecord-import/wiki/Requiring for more information
MSG
require File.expand_path(File.join(File.dirname(__FILE__), "/../activerecord-import")) require File.expand_path(File.join(File.dirname(__FILE__), "/../activerecord-import"))

View file

@ -1,4 +1,6 @@
require File.expand_path(File.dirname(__FILE__) + '/../test_helper') require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
require "activerecord-import/mysql"
require "test/support/mysql/assertions"
require "test/support/mysql/import_examples"
should_support_mysql_import_functionality should_support_mysql_import_functionality

View file

@ -1,5 +1,4 @@
require File.expand_path(File.dirname(__FILE__) + '/../test_helper') require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
require "activerecord-import/mysql2"
require "test/support/mysql/assertions" require "test/support/mysql/assertions"
require "test/support/mysql/import_examples" require "test/support/mysql/import_examples"