We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e9d3fc commit feafcd7Copy full SHA for feafcd7
1 file changed
app/controllers/concerns/importable.rb
@@ -27,7 +27,6 @@ def import_csv
27
data = File.read(params[:file].path, encoding: "BOM|UTF-8")
28
csv = CSV.parse(data, headers: true)
29
if csv.count.positive? && csv.first.headers.all? { |header| !header.nil? }
30
-
31
errors = resource_model.import_csv(csv, current_organization.id)
32
if errors.empty?
33
flash[:notice] = "#{resource_model_humanized} were imported successfully!"
0 commit comments