Skip to content

Commit

Permalink
rename #name to #journey_name
Browse files Browse the repository at this point in the history
- as this seems to conflict with active job serialisation
  • Loading branch information
asmega committed Nov 29, 2024
1 parent 1c66fb9 commit 0cfec39
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/forms/email_address_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def save

journey_session.save!

ClaimMailer.email_verification(answers, otp_code, journey_session.journey_class.name).deliver_now
ClaimMailer.email_verification(answers, otp_code, journey_session.journey_class.journey_name).deliver_now
end

private
Expand Down
2 changes: 1 addition & 1 deletion app/forms/reminders/personal_details_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def save!
reminder_otp_secret:
)

ReminderMailer.email_verification(reminder, otp_code, journey_session.journey_class.name).deliver_now
ReminderMailer.email_verification(reminder, otp_code, journey_session.journey_class.journey_name).deliver_now

journey_session.save!
end
Expand Down
2 changes: 1 addition & 1 deletion app/models/journeys/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def requires_student_loan_details?
false
end

def name
def journey_name
I18n.t(:journey_name, scope: self::I18N_NAMESPACE)
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/forms/email_address_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
first_name: "Jo",
one_time_password: "111111",
support_email_address: support_email_address,
journey_name: journey_session.journey_class.name
journey_name: journey_session.journey_class.journey_name
)
end

Expand Down

0 comments on commit 0cfec39

Please sign in to comment.