rosa-build/app/models/concerns/file_store_clean.rb

14 lines
292 B
Ruby

module FileStoreClean
extend ActiveSupport::Concern
def destroy
DestroyFilesFromFileStoreJob.perform_async(sha1_of_file_store_files) if Rails.env.production?
super
end
def sha1_of_file_store_files
raise NotImplementedError, "You should implement this method"
end
end