Skip to content

Update Pay::Customer#email to return nil if owner has been deleted #1169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

mpvosseller
Copy link
Contributor

@mpvosseller mpvosseller commented May 29, 2025

Pull Request

Summary:

Updates the Pay::Customer#email method to return nil if owner has been deleted instead of raising an error:

ActiveSupport::DelegationError: email delegated to owner, but owner is nil

Related Issue:

#403

Description:

Testing:

Screenshots (if applicable):

Checklist:

  • Code follows the project's coding standards
  • Tests have been added or updated to cover the changes
  • Documentation has been updated (if applicable)
  • All existing tests pass
  • Conforms to the contributing guidelines

Additional Notes:

@excid3 excid3 merged commit f8203b0 into pay-rails:main May 29, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants