Skip to content

Load Rails 8.0 default config#7017

Open
stefannibrasil wants to merge 1 commit into
rubyforgood:mainfrom
hexdevs:rails-8-load-defaults-follow-up
Open

Load Rails 8.0 default config#7017
stefannibrasil wants to merge 1 commit into
rubyforgood:mainfrom
hexdevs:rails-8-load-defaults-follow-up

Conversation

@stefannibrasil

Copy link
Copy Markdown
Contributor

Closes #7016

The application is running with new defaults, which means we can remove the 8.0 defaults file and flip the config.load_defaults value.

Doing this fixes this deprecation warning:

"DEPRECATION WARNING: to_time will always preserve
the full timezone rather than offset of the receiver
in Rails 8.1. To opt in to the new behavior,
set config.active_support.to_time_preserves_timezone = :zone.
(called from <top (required)> at /config/environment.rb:5)"

The application is ready to run with new defaults,
which means we can remove the 8.0 defaults file
and flip the `config.load_defaults` value.

Doing this fixes this deprecation warning:

```
"DEPRECATION WARNING: to_time will always preserve
the full timezone rather than offset of the receiver
in Rails 8.1. To opt in to the new behavior,
set config.active_support.to_time_preserves_timezone = :zone.
(called from <top (required)> at /config/environment.rb:5)"
```
@github-actions github-actions Bot added the ruby Touches Ruby code label Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ruby Touches Ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rails 8.0 upgrade followup: update config.load_defaults

1 participant