lib/load_data_infile2/active_record_extension.rb
require 'load_data_infile2/active_record'
module LoadDataInfile2
module ActiveRecordExtension
def load_data_infile(file, options = {})
LoadDataInfile2::ActiveRecord.new(self, default_load_data_infile_options).import(file, options)
end
cattr_accessor :default_load_data_infile_options do
{}
end
end
end