Skip to content

Commit

Permalink
Set framework defaults
Browse files Browse the repository at this point in the history
- Also opt-in to timezone preservation (default in 8.1)
  • Loading branch information
KludgeKML committed Jan 9, 2025
1 parent 29e400f commit 4a25ea5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
module AccountApi
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 7.1
config.load_defaults 8.0

# Please, add to the `ignore` list any other `lib` subdirectories that do
# not contain `.rb` files, or that should not be reloaded or eager loaded.
Expand All @@ -42,5 +42,8 @@ class Application < Rails::Application
config.api_only = true

config.x.user_attributes = config_for("user_attributes")

# Opt-in to timezone preservation - remove in 8.1, when it will be the default
config.active_support.to_time_preserves_timezone = :zone
end
end

0 comments on commit 4a25ea5

Please sign in to comment.