lib/mass_insert.rb in mass_insert-0.1.3 vs lib/mass_insert.rb in mass_insert-0.2.0
- old
+ new
@@ -1,15 +1,19 @@
+require 'delegate'
+
module MassInsert
autoload :Base, 'mass_insert/base.rb'
- autoload :Result, 'mass_insert/result.rb'
+ autoload :Builder, 'mass_insert/builder.rb'
autoload :Process, 'mass_insert/process.rb'
autoload :Executer, 'mass_insert/executer.rb'
+ autoload :Utilities, 'mass_insert/utilities.rb'
autoload :VERSION, 'mass_insert/version.rb'
- module Builder
- autoload :Base, 'mass_insert/builder/base.rb'
- autoload :Adapters, 'mass_insert/builder/adapters.rb'
- autoload :Utilities, 'mass_insert/builder/utilities.rb'
+ module Adapters
+ autoload :AbstractAdapter, 'mass_insert/adapters/abstract_adapter.rb'
+ autoload :Mysql2Adapter, 'mass_insert/adapters/mysql2_adapter.rb'
+ autoload :PostgreSQLAdapter, 'mass_insert/adapters/postgresql_adapter.rb'
+ autoload :SQLite3Adapter, 'mass_insert/adapters/sqlite3_adapter.rb'
end
end
if defined?(ActiveRecord::Base)
ActiveRecord::Base.extend MassInsert::Base