lib/sepa/attribute_checks.rb
# Checks that encryption certificate signing request can be initialized properly.
Checks that encryption certificate signing request can be initialized properly.
Checks that encryption certificate signing request can be initialized properly .
def check_encryption_cert_request
      return unless bank == :danske
      return unless [:create_certificate, :renew_certificate].include? command
      return if cert_request_valid?(encryption_csr)
      errors.add(:encryption_csr, ENCRYPTION_CERT_REQUEST_ERROR_MESSAGE)
    end
def check_encryption_cert_request return unless bank == :danske return unless [ :create_certificate , :renew_certificate ] . include? command return if cert_request_valid? ( encryption_csr ) errors . add ( :encryption_csr , ENCRYPTION_CERT_REQUEST_ERROR_MESSAGE ) end
Checks that encryption certificate signing request can be initialized properly.
Checks that encryption certificate signing request can be initialized properly .