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
active_admin_importoptionscontrollerdoaround_action:wrap_in_transaction,only: [:do_import]defwrap_in_transactionApplicationRecord.transactiondoyield# When error appears during ActiveAdminImport process# it's being rescued inside gem and adds flash error.# In this case we must rollback a transaction.# see https://github.com/activeadmin-plugins/active_admin_import/issues/169raiseActiveRecord::Rollbackifflash[:error].present?endend
also it will be nice to have ability to pass template_object as proc
The text was updated successfully, but these errors were encountered: