Skip to content

Commit

Permalink
[ARP-86023] ARP IPF: Validate presence of ARP user account.
Browse files Browse the repository at this point in the history
  • Loading branch information
nihil2501 committed Sep 7, 2024
1 parent 7056d3c commit f8764d1
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ class RepresentativeUser < Common::RedisStore

alias_attribute :mhv_icn, :icn

validates :uuid, :email, :first_name, :last_name, :icn, presence: true
validates(
:uuid, :user_account_uuid, :email,
:first_name, :last_name, :icn,
presence: true
)

def user_account
return unless user_account_uuid

@user_account ||= UserAccount.find_by(id: user_account_uuid)
end

Expand Down

0 comments on commit f8764d1

Please sign in to comment.