]> source.dussan.org Git - redmine.git/commitdiff
Remove backported Rack::RewindableInput.size method due to Rack 3.0 migration (#36320).
authorGo MAEDA <maeda@farend.jp>
Sun, 21 Jan 2024 03:58:09 +0000 (03:58 +0000)
committerGo MAEDA <maeda@farend.jp>
Sun, 21 Jan 2024 03:58:09 +0000 (03:58 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22615 e93f8b46-1217-0410-a6f0-8f06a7374b81

config/initializers/10-patches.rb

index 327cdd778c8f1b94d6b457ffbe984296eef8380a..e9d15cae536ca333878b6accedd1f100e694e5dd 100644 (file)
@@ -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