| Situation | Recommended Action |
|---|---|
| Modern app with well-maintained gems | Safe to try globally (test in dev/test first). |
| Legacy code or older gems | Risky — better use the magic comment per file. |
| Gem development | Avoid setting it globally — you’ll affect consumers. |
| Rails itself | Rails 7+ core code is largely safe with frozen literals, but it doesn’t assume global freezing. |
Created
October 27, 2025 12:12
-
-
Save giljr/637d60a4fb88b8b0e8d9ba891e8d2eac to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment