Upgrade rubocop-rails from 2.33.4 to 2.34.2 and address related offenses (#37243)

This commit is contained in:
Nicholas La Roux authored and GitHub committed 2025-12-15 12:57:16 +00:00
1 parent 5fa7654688
commit 09ab2829da
7 files changed
+8 -8

No files matched your search

@@ -39,7 +39,7 @@ class ActivityPub::InboxesController < ActivityPub::BaseController
return @body if defined?(@body)
@body = request.body.read
@body.force_encoding('UTF-8') if @body.present?
@body.presence&.force_encoding('UTF-8')
request.body.rewind if request.body.respond_to?(:rewind)
+1 -1
View File
@@ -275,7 +275,7 @@ class Request
end
if ::HTTP::Response.methods.include?(:body_with_limit) && !Rails.env.production?
abort 'HTTP::Response#body_with_limit is already defined, the monkey patch will not be applied'
raise 'HTTP::Response#body_with_limit is already defined, the monkey patch will not be applied'
else
class ::HTTP::Response
include Request::ClientLimit