improve download releases button

This commit is contained in:
Bilal
2020-09-01 03:51:56 +03:00
parent f611382e9e
commit 3471e21429
10 changed files with 199 additions and 23 deletions

View File

@@ -164,6 +164,10 @@ class AppearanceRelease < ApplicationRecord
"#{project.name.parameterize}_#{contract_template.release_type}_#{(signed_at || created_at).strftime('%Y.%m.%d')}_#{release_number}_#{filename_suffix.parameterize}"
end
def complete?
person_photo.attached? && contract.attached?
end
private
# Validates the quality of the person photo