Class: X509Issuer

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

Constant Summary

Constants inherited from ApplicationRecord

ApplicationRecord::MAX_PLUCK

Constants included from ResetOnUnionError

ResetOnUnionError::MAX_RESET_PERIOD

Class Method Summary collapse

Methods inherited from ApplicationRecord

cached_column_list, #create_or_load_association, declarative_enum, default_select_columns, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, #readable_by?, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, #to_ability_name, underscore, where_exists, where_not_exists, with_fast_read_statement_timeout, without_order

Methods included from SensitiveSerializableHash

#serializable_hash

Class Method Details

.safe_create!(attributes) ⇒ Object



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

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

.with_crl_urlObject



18
19
20
# File 'app/models/x509_issuer.rb', line 18

def self.with_crl_url
  where.not(crl_url: nil)
end