Skip to content

Commit 7859164

Browse files
committed
Merge pull request #32 from Fivell/Fivell-patch-1
Update README.md
2 parents 71795d4 + 5ab1a04 commit 7859164

File tree

1 file changed

+19
-22
lines changed

1 file changed

+19
-22
lines changed

README.md

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -51,28 +51,25 @@ And then execute:
5151

5252

5353
#### Options
54-
55-
<table>
56-
<tr><td>name</td><td>description</td></tr>
57-
<tr><td>:back</td><td>resource action to redirect after processing</td></tr>
58-
<tr><td>:csv_options</td><td>hash with column separator, row separator, etc </td></tr>
59-
<tr><td>:validate</td><td>true|false, means perform validations or not</td></tr>
60-
<tr><td>:batch_size</td><td>integer value of max record count inserted by 1 query/transaction</td></tr>
61-
<tr><td>:before_import</td><td>proc for before import action, hook called with importer object</td></tr>
62-
<tr><td>:after_import</td><td>proc for after import action, hook called with importer object</td></tr>
63-
<tr><td>:before_batch_import</td><td>proc for before each batch action, called with importer object</td></tr>
64-
<tr><td>:after_batch_import</td><td>proc for after each batch action, called with importer object</td></tr>
65-
<tr><td>:on_duplicate_key_update</td><td>an Array or Hash, tells activerecord-import to use MySQL's ON DUPLICATE KEY UPDATE ability.</td></tr>
66-
<tr><td>:timestamps</td><td>true|false, tells activerecord-import to not add timestamps (if false) even if record timestamps is disabled in ActiveRecord::Base</td></tr>
67-
<tr><td>:ignore</td><td>true|false, tells activerecord-import toto use MySQL's INSERT IGNORE ability</td></tr>
68-
<tr><td>:template</td><td>custom template rendering</td></tr>
69-
<tr><td>:template_object</td><td>object passing to view</td></tr>
70-
<tr><td>:locals</td><td>more variables for template</td></tr>
71-
<tr><td>:resource_class</td><td>resource class name</td></tr>
72-
<tr><td>:resource_label</td><td>resource label value</td></tr>
73-
<tr><td>:plural_resource_label</td><td>pluralized resource label value (default config.plural_resource_label)</td></tr>
74-
<tr><td>:headers_rewrites</td><td>hash with key (csv header) - value (db column name) rows mapping</td></tr>
75-
</table>
54+
Tool | Description
55+
--------------------- | -----------
56+
:back |resource action to redirect after processing
57+
:csv_options |hash with column separator, row separator, etc
58+
:validate |bool means perform validations or not
59+
:batch_size |integer value of max record count inserted by 1 query/transaction
60+
:before_import |proc for before import action, hook called with importer object
61+
:after_import |proc for after import action, hook called with importer object
62+
:before_batch_import |proc for before each batch action, called with importer object
63+
:after_batch_import |proc for after each batch action, called with importer object
64+
:on_duplicate_key_update|an Array or Hash, tells activerecord-import to use MySQL's ON DUPLICATE KEY UPDATE ability.
65+
:timestamps |bool, tells activerecord-import to not add timestamps (if false) even if record timestamps is disabled in ActiveRecord::Base
66+
:ignore |bool, tells activerecord-import toto use MySQL's INSERT IGNORE ability
67+
:template |custom template rendering
68+
:template_object |object passing to view
69+
:resource_class |resource class name
70+
:resource_label |resource label value
71+
:plural_resource_label |pluralized resource label value (default config.plural_resource_label)
72+
:headers_rewrites |hash with key (csv header) - value (db column name) rows mapping
7673

7774

7875

0 commit comments

Comments
 (0)