Class: ActiveAdminExcelUpload::ExcelParserJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/active_admin_excel_upload/excel_parser_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(klass, file_path, current_admin_user) ⇒ Object



9
10
11
12
13
# File 'app/jobs/active_admin_excel_upload/excel_parser_job.rb', line 9

def perform(klass,file_path,current_admin_user)
  # Do something later
  klass.constantize.send(:excel_process_sheet, file_path, current_admin_user)
  FileUtils.rm(file_path)
end