fix MR comments
This commit is contained in:
@@ -5,14 +5,15 @@ module Amendmenable
|
||||
include ActiveStorageSupport::SupportForBase64
|
||||
|
||||
has_one_base64_attached :amendment_signature
|
||||
|
||||
with_options on: :amendment do
|
||||
validates :amendment_signer_name, presence: true
|
||||
validates :amendment_signature, attached: true
|
||||
end
|
||||
end
|
||||
|
||||
def amendment_signable?
|
||||
if contract_template.present?
|
||||
contract_template.amendment_clause.present?
|
||||
else
|
||||
false
|
||||
end
|
||||
contract_template.present? && contract_template.amendment_clause.present?
|
||||
end
|
||||
|
||||
def amendment_signed?
|
||||
|
||||
Reference in New Issue
Block a user