Skip to content

Fix Rails edge deprecation warning #2672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2023
Merged

Fix Rails edge deprecation warning #2672

merged 1 commit into from
Apr 21, 2023

Conversation

pirj
Copy link
Member

@pirj pirj commented Apr 19, 2023

See e.g. https://github.com/rspec/rspec-rails/actions/runs/4746930554/jobs/8431194845

       -:io => (be blank),
       +:io => "/home/runner/work/rspec-rails/bundle/ruby/3.2.0/gems/rack-3.0.7/lib/rack/chunked.rb:6: warning: Rack::Chunked is deprecated and will be removed in Rack 3.1\n/home/runner/work/rspec-rails/bundle/ruby/3.2.0/bundler/gems/rails-795d52473740/activerecord/lib/active_record.rb:242:in `legacy_connection_handling=': The `legacy_connection_handling` setter was deprecated in 7.0 and removed in 7.1, but is still defined in your configuration. Please remove this call as it no longer has any effect.\" (ArgumentError)\n\tfrom /home/runner/work/rspec-rails/bundle/ruby/3.2.0/bundler/gems/rails-795d52473740/activerecord/lib/active_record/railtie.rb:270:in `block (3 levels) in <class:Railtie>'\n\tfrom /home/runner/work/rspec-rails/bundle/ruby/3.2.0

According to
https://guides.rubyonrails.org/configuring.html#default-values-for-target-version-6-1,
it would have been false by default anyway.

@pirj pirj self-assigned this Apr 19, 2023
@pirj pirj changed the title Fix Rails deprecation warning Fix Rails edge deprecation warning Apr 19, 2023
@JonRowe
Copy link
Member

JonRowe commented Apr 20, 2023

I think it needs to be set in 7.0 only...

See e.g. https://github.com/rspec/rspec-rails/actions/runs/4746930554/jobs/8431194845

```
       -:io => (be blank),
       +:io => "/home/runner/work/rspec-rails/bundle/ruby/3.2.0/gems/rack-3.0.7/lib/rack/chunked.rb:6: warning: Rack::Chunked is deprecated and will be removed in Rack 3.1\n/home/runner/work/rspec-rails/bundle/ruby/3.2.0/bundler/gems/rails-795d52473740/activerecord/lib/active_record.rb:242:in `legacy_connection_handling=': The `legacy_connection_handling` setter was deprecated in 7.0 and removed in 7.1, but is still defined in your configuration. Please remove this call as it no longer has any effect.\" (ArgumentError)\n\tfrom /home/runner/work/rspec-rails/bundle/ruby/3.2.0/bundler/gems/rails-795d52473740/activerecord/lib/active_record/railtie.rb:270:in `block (3 levels) in <class:Railtie>'\n\tfrom /home/runner/work/rspec-rails/bundle/ruby/3.2.0
```

According to
https://guides.rubyonrails.org/configuring.html#default-values-for-target-version-6-1,
it would have been `false` by default anyway.
@pirj pirj force-pushed the fix-rails-edge-warning branch from abce612 to c944d25 Compare April 21, 2023 14:34
@JonRowe JonRowe merged commit 0c54f93 into main Apr 21, 2023
@JonRowe JonRowe deleted the fix-rails-edge-warning branch April 21, 2023 21:04
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.

2 participants