Skip to content

Commit

Permalink
[ART] lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nihil2501 authored and ojbucao committed Jan 10, 2025
1 parent f339d92 commit 8dd47f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@ class PowerOfAttorneyRequestResolution < ApplicationRecord
class_name: 'PowerOfAttorneyRequest',
inverse_of: :resolution

RESOLVING_TYPES = [
'PowerOfAttorneyRequestExpiration',
'PowerOfAttorneyRequestDecision'
RESOLVING_TYPES = %w[
PowerOfAttorneyRequestExpiration
PowerOfAttorneyRequestDecision
].freeze

delegated_type :resolving,
types: RESOLVING_TYPES,
inverse_of: :resolution,
validate: true
types: RESOLVING_TYPES,
inverse_of: :resolution,
validate: true

module Resolving
extend ActiveSupport::Concern

included do
has_one :resolution,
as: :resolving,
inverse_of: :resolving,
class_name: 'PowerOfAttorneyRequestResolution',
validate: true,
required: true
as: :resolving,
inverse_of: :resolving,
class_name: 'PowerOfAttorneyRequestResolution',
validate: true,
required: true
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
association :claimant, factory: :user_account
association :power_of_attorney_form, strategy: :build

association :power_of_attorney_holder, factory: %i[accredited_organization with_representatives]
association :power_of_attorney_holder, factory: %i[accredited_organization with_representatives], strategy: :create
accredited_individual { power_of_attorney_holder.accredited_individuals.first }

trait :with_acceptance do
Expand Down

0 comments on commit 8dd47f9

Please sign in to comment.