Would be cleaner to not leak the tempfile outside this method, e.g. do

    ExcelExport.create(members) do |result|
      self.export = result
      self.export_status = 'done'
      self.save!
    end