app/controllers/uploads_controller.rb
#
# Determines if the uploaded file should be committed to the blockchain and if so, commits it.
#
Determines if the uploaded file should be committed to the blockchain and if so, commits it.
Determines if the uploaded file should be committed to the blockchain and if so commits it .
def commit_file
    if @upload.public? && @upload.file_type.public? && @upload.address.blank? && (@upload.creating? || @upload.failed?)
      BlockchainCommitJob.perform_later(@upload.id)
    end
  end
def commit_file if @upload . public? && @upload . file_type . public? && @upload . address . blank? && ( @upload . creating? || @upload . failed? ) BlockchainCommitJob . perform_later ( @upload . id ) end end
Determines if the uploaded file should be committed to the blockchain and if so, commits it.
Determines if the uploaded file should be committed to the blockchain and if so commits it .