You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[x] Update README.md
-[x] Whitelist new :error_limit option
-[x] Set default :error_limit to 5
-[x] sends option[:error_limit] instead of hardcoded 5 from dsl
-[x] import result checks for option[:error_limit]
:back|resource action to redirect after processing
64
-
:csv_options|hash with column separator, row separator, etc
65
-
:validate|bool means perform validations or not
66
-
:batch_size|integer value of max record count inserted by 1 query/transaction
63
+
:back|resource action to redirect after processing
64
+
:csv_options|hash with column separator, row separator, etc
65
+
:validate|bool means perform validations or not
66
+
:batch_size|integer value of max record count inserted by 1 query/transaction
67
67
:batch_transaction |bool (false by default), if transaction is used when batch importing and works when :validate is set to true
68
-
:before_import|proc for before import action, hook called with importer object
69
-
:after_import|proc for after import action, hook called with importer object
70
-
:before_batch_import|proc for before each batch action, called with importer object
71
-
:after_batch_import|proc for after each batch action, called with importer object
68
+
:before_import|proc for before import action, hook called with importer object
69
+
:after_import|proc for after import action, hook called with importer object
70
+
:before_batch_import|proc for before each batch action, called with importer object
71
+
:after_batch_import|proc for after each batch action, called with importer object
72
72
:on_duplicate_key_update|an Array or Hash, tells activerecord-import to use MySQL's ON DUPLICATE KEY UPDATE or Postgres 9.5+ ON CONFLICT DO UPDATE ability.
73
-
:timestamps |bool, tells activerecord-import to not add timestamps (if false) even if record timestamps is disabled in ActiveRecord::Base
74
-
:ignore |bool, tells activerecord-import to use MySQL's INSERT IGNORE ability
75
-
:template |custom template rendering
76
-
:template_object |object passing to view
77
-
:resource_class |resource class name
78
-
:resource_label |resource label value
79
-
:plural_resource_label |pluralized resource label value (default config.plural_resource_label)
80
-
:headers_rewrites |hash with key (csv header) - value (db column name) rows mapping
73
+
:timestamps |bool, tells activerecord-import to not add timestamps (if false) even if record timestamps is disabled in ActiveRecord::Base
74
+
:ignore |bool, tells activerecord-import to use MySQL's INSERT IGNORE ability
75
+
:template |custom template rendering
76
+
:template_object |object passing to view
77
+
:resource_class |resource class name
78
+
:resource_label |resource label value
79
+
:plural_resource_label |pluralized resource label value (default config.plural_resource_label)
80
+
:error_limit |Limit the number of errors reported (default `5`, set to `nil` for all)
81
+
:headers_rewrites |hash with key (csv header) - value (db column name) rows mapping
81
82
82
83
83
84
@@ -103,11 +104,3 @@ Tool | Description
103
104
3. Commit your changes (`git commit -am 'Add some feature'`)
104
105
4. Push to the branch (`git push origin my-new-feature`)
0 commit comments