Class: EVSSClaim
Defined Under Namespace
Classes: RequestDecision
Class Method Summary
collapse
descendants_using_encryption, lockbox_options, #timestamp_attributes_for_update_in_model, #valid?
Class Method Details
.claim_for_user_account(user_account) ⇒ Object
18
19
20
21
22
|
# File 'app/models/evss_claim.rb', line 18
def self.claim_for_user_account(user_account)
return EVSSClaim.none unless user_account
where(user_account:)
end
|
.claim_for_user_uuid(user_uuid) ⇒ Object
12
13
14
15
16
|
# File 'app/models/evss_claim.rb', line 12
def self.claim_for_user_uuid(user_uuid)
return EVSSClaim.none unless user_uuid
where(user_uuid:)
end
|
.for_user(user) ⇒ Object
8
9
10
|
# File 'app/models/evss_claim.rb', line 8
def self.for_user(user)
claim_for_user_uuid(user.uuid).or(claim_for_user_account(user.user_account))
end
|