Upgrade to Rails 7.1
We're disabling `action_controller.raise_on_missing_callback_actions` because sometimes we include `before_action :something, only: actions` in concerns, and we include these concerns in controllers that don't have all these actions. Note that Rails 7.1 logs to STDOUT by default [1]; we're re-adding the condition `if ENV["RAILS_LOG_TO_STDOUT"].present?` because we're still using files and we're rotating the logs to avoid running out of space. Also note that the GraphQL controller test (which is actually a request test, since it's got `type: :request`) that was raising an exception no longer does it thanks to the new default value for the `config.action_dispatch.show_exceptions` configuration option. So we're updating the test accordingly. This option doesn't affect regular controller tests (without the `type: :request` option), so in other tests we're still checking exceptions. [1] Pull request 47138 in https://github.com/rails/rails
This commit is contained in:
@@ -186,6 +186,8 @@ Layout/MultilineMethodCallBraceLayout:
|
||||
|
||||
Layout/MultilineMethodCallIndentation:
|
||||
Enabled: true
|
||||
Exclude:
|
||||
- "config/environments/production.rb"
|
||||
|
||||
Layout/MultilineOperationIndentation:
|
||||
Enabled: true
|
||||
@@ -698,6 +700,8 @@ Style/AndOr:
|
||||
|
||||
Style/ArgumentsForwarding:
|
||||
Enabled: true
|
||||
Exclude:
|
||||
- "bin/setup"
|
||||
|
||||
Style/ArrayCoercion:
|
||||
Enabled: true
|
||||
|
||||
Reference in New Issue
Block a user