Skip to content

Commit

Permalink
Update file.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
joel committed Dec 19, 2022
1 parent 02d3369 commit e8e6633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/csvbuilder/importer/public/import/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class File
define_model_callbacks :next
define_model_callbacks :abort, :skip, only: :before

validate { errors.messages.merge!(csv.errors.messages) unless csv.valid? }
validate { errors.merge!(csv.errors) unless csv.valid? }

# @param [String] file_path path of csv file
# @param [Import] row_model_class model class returned for importing
Expand Down

0 comments on commit e8e6633

Please sign in to comment.