mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-30 00:45:28 +08:00
Merge pull request #2105 from aignatov-bio/ai-sci-fix-tests-for-import-repository-row
Fix tests for repository row importer
This commit is contained in:
commit
91cc054096
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
class SpreadsheetParser
|
||||
# Based on file's extension opens file (used for importing)
|
||||
def self.open_spreadsheet(file)
|
||||
if file.class == ActionDispatch::Http::UploadedFile
|
||||
if file.class.name.split('::')[-1] == 'UploadedFile'
|
||||
filename = file.original_filename
|
||||
file_path = file.path
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue