mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 03:58:27 +02:00
Fix rubocop
This commit is contained in:
parent
2fb632b7a9
commit
ae746be970
4 changed files with 10 additions and 4 deletions
|
@ -14,9 +14,8 @@ class Certificate < ActiveRecord::Base
|
|||
validate :validate_csr_and_crt
|
||||
|
||||
def validate_csr_and_crt
|
||||
if csr.blank? && crt.blank?
|
||||
errors.add(:base, I18n.t(:crt_or_csr_must_be_present))
|
||||
end
|
||||
return if csr.present? || crt.present?
|
||||
errors.add(:base, I18n.t(:crt_or_csr_must_be_present))
|
||||
end
|
||||
|
||||
def parsed_crt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue