Created
December 28, 2020 12:58
-
-
Save dipak-tntra/0fdcfedcd0cd84bfcad01dd5b52108bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UploadCsv < ApplicationRecord | |
mount_uploader :csv_file, AvatarUploader | |
after_create :processed_csv | |
def processed_csv | |
GenrateCsvJob.perform_later(self) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment