Skip to content

Conversation

@chennes
Copy link
Contributor

@chennes chennes commented Oct 14, 2025

Prevent any attempt to access LetterOpenerWeb when running in production.

Checklist

  • I have read the Contribution & Best practices Guide.
  • My branch is up-to-date with the upstream master branch.
  • The tests pass locally with my changes.
  • I have added tests that prove my fix is effective or that my feature works(if appropriate).
  • I have added necessary documentation (if appropriate).

Short description of what this resolves/which issues does this fix?:

  • When running in production mode, the original code fails with an error about access to LetterOpenerWeb because of the way Rails runs the existing line. This PR refactors the check to ensure that only the development environment attempts to access it.

Changes proposed in this pull request:

  • Refactor the use of LetterOpenerWeb to check for the dev environment before attempting to access it.

chennes and others added 2 commits October 14, 2025 10:32
Prevent any attempt to access `LetterOpenerWeb` when running in production.
@chennes
Copy link
Contributor Author

chennes commented Nov 6, 2025

The linter is complaining about the block length, which went from 202 to 204 lines -- it's beyond my meager Ruby skills to refactor this code in any sensible way. And of course IMO it doesn't make sense to do so as part of this PR :). At any rate, if that's what's holding this up please let me know, I don't know this project's policy on CI failures.

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