Skip to content

Commit

Permalink
Bump Rails default configuration from 6.1 to 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
orien committed Jan 23, 2025
1 parent 650680c commit 69f7024
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 @@ -51,11 +51,14 @@
module Samson
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 6.1
config.load_defaults 7.0

# the new default of `true` breaks test/models/user_test.rb see https://github.com/rails/rails/issues/40867
config.active_record.has_many_inversing = false

# the new default of `true` breaks redirecting to shields.io.
config.action_controller.raise_on_open_redirects = false

# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = (ENV["FORCE_SSL"] == "1")
config.ssl_options = {redirect: {exclude: ->(request) { request.path.match?(/^\/ping(\/|$)/) }}}
Expand Down

0 comments on commit 69f7024

Please sign in to comment.