mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Auto sync preference, max limit on account CSV imports (#2259)
* Auto sync preference, max limit on account CSV imports * MaxRowCountExceededError
This commit is contained in:
@@ -5,6 +5,8 @@ class ImportsController < ApplicationController
|
||||
@import.publish_later
|
||||
|
||||
redirect_to import_path(@import), notice: "Your import has started in the background."
|
||||
rescue Import::MaxRowCountExceededError
|
||||
redirect_back_or_to import_path(@import), alert: "Your import exceeds the maximum row count of #{@import.max_row_count}."
|
||||
end
|
||||
|
||||
def index
|
||||
|
||||
Reference in New Issue
Block a user