Skip to content

Conversation

@rmosolgo
Copy link
Owner

As suggested in #5384 (comment), this logic was kind of backwards. development? should get special treatment -- non-preloading -- while non-development environments (production and staging, etc) get preloading by default.

@cocoahero
Copy link
Contributor

This would cause it to preload in Rails.env.test? which I am not sure is desired.

@rmosolgo rmosolgo added this to the 2.5.15 milestone Dec 8, 2025
@rmosolgo
Copy link
Owner Author

rmosolgo commented Dec 8, 2025

Thanks for the heads up on that, @cocoahero. I simplified it to just adding || Rails.env.staging?.

@rmosolgo rmosolgo merged commit dee9294 into master Dec 8, 2025
12 of 13 checks passed
@rmosolgo rmosolgo deleted the switch-on-development-not-production branch December 8, 2025 17:14
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.

3 participants