activerecord-import icon indicating copy to clipboard operation
activerecord-import copied to clipboard

About track_validation_failures and import methods

Open Aug-zhong opened this issue 2 years ago • 0 comments

Hello I'm having a problem with this: track_validation_failures: true when i import method take an array of hashes, the failed_instances will be an array of arrays, with each internal array of the form [:index_in_dataset, :object_with_errors] when i import method take an array of models, the failed_instances will be an array with each internal array of the form [:object_with_errors], which loses the :index_in_dataset, Is this a bug?

Aug-zhong avatar May 27 '22 09:05 Aug-zhong