ar_csv_importer 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ar_csv_importer.rb +3 -3
- data/lib/version.rb +1 -1
- metadata +1 -1
data/lib/ar_csv_importer.rb
CHANGED
@@ -7,14 +7,14 @@ module ARCSVImporter
|
|
7
7
|
self.csv_importer_row_order = row_order
|
8
8
|
|
9
9
|
def self.csv_import(file_path)
|
10
|
-
importer.import
|
10
|
+
importer(file_path).import
|
11
11
|
end
|
12
12
|
|
13
13
|
def self.csv_import!(file_path)
|
14
|
-
importer.import(true)
|
14
|
+
importer(file_path).import(true)
|
15
15
|
end
|
16
16
|
|
17
|
-
def self.importer
|
17
|
+
def self.importer(file_path)
|
18
18
|
@importer ||= ARCSVImporter::Importer.new(file_path, self, self.csv_importer_row_order)
|
19
19
|
end
|
20
20
|
end
|
data/lib/version.rb
CHANGED