We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a63f807 + e834957 commit f5c3716Copy full SHA for f5c3716
app/workers/attachments/finish_direct_upload_job.rb
@@ -79,7 +79,7 @@ def validate_attachment(attachment, whitelist)
79
contract = create_contract attachment, whitelist
80
81
unless contract.valid?
82
- errors = contracterrors.full_messages.join(", ")
+ errors = contract.errors.full_messages.join(", ")
83
raise "Failed to validate attachment #{attachment.id}: #{errors}"
84
end
85
0 commit comments