From 77e684705217d3cff4c69fe303133bb43c706e6f Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Fri, 20 May 2022 18:27:02 +0200 Subject: [PATCH] Suite --- lib/acts_as_csv_import/hook.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/acts_as_csv_import/hook.rb b/lib/acts_as_csv_import/hook.rb index c67f8b4..dda5df1 100644 --- a/lib/acts_as_csv_import/hook.rb +++ b/lib/acts_as_csv_import/hook.rb @@ -31,7 +31,10 @@ module ActsAsCsvImport::Hook end - n.save + if n.save + else + puts n.errors.messages + end import_csv.import_csv_elements << ImportCsvElement.new(:element => n)