Skip to content

Commit d1fd922

Browse files
committed
REW-2045 - use File.open(file) instead of file.tempfile as was causing ActiveStorage Integrity errors
1 parent c2ba05c commit d1fd922

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/concerns/csv2db/active_storage_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module Csv2db::ActiveStorageAdapter
1111
def file=(file)
1212
# Override Dragonfly setter method
1313
csv_upload.attach(
14-
io: file.tempfile,
14+
io: File.open(file),
1515
filename: file.original_filename,
1616
content_type: file.content_type
1717
)

0 commit comments

Comments
 (0)