Class: X509Issuer

Inherits:
ApplicationRecord show all
Defined in:
app/models/x509_issuer.rb

Class Method Summary collapse

Methods inherited from ApplicationRecord

at_most, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, underscore, without_order

Class Method Details

.safe_create!(attributes) ⇒ Object


14
15
16
17
# File 'app/models/x509_issuer.rb', line 14

def self.safe_create!(attributes)
  create_with(attributes)
    .safe_find_or_create_by!(subject_key_identifier: attributes[:subject_key_identifier])
end