From 6ea1fd551de8156ec7713759e4b1f264cf99adb2 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 21 Jan 2024 03:58:09 +0000 Subject: [PATCH] Remove backported Rack::RewindableInput.size method due to Rack 3.0 migration (#36320). git-svn-id: https://svn.redmine.org/redmine/trunk@22615 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/initializers/10-patches.rb | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb index 327cdd778..e9d15cae5 100644 --- a/config/initializers/10-patches.rb +++ b/config/initializers/10-patches.rb @@ -214,17 +214,3 @@ module ActionView end end end - -# https://github.com/rack/rack/pull/1703 -# TODO: remove this when Rack is updated to 3.0.0 -require 'rack' -module Rack - class RewindableInput - unless method_defined?(:size) - def size - make_rewindable unless @rewindable_io - @rewindable_io.size - end - end - end -end