Sha256: 40aeb27df90ebb79fc7e8e33f7887b325f2319c28248c3005ce498329425f9ba

Contents?: true

Size: 418 Bytes

Versions: 2

Compression:

Stored size: 418 Bytes

Contents

# The suggestion for this file is from: https://github.com/rails/rails/issues/34790
if RUBY_VERSION >= '2.6.0'
  if Rails.version < '5'
    class ActionController::TestResponse < ActionDispatch::TestResponse
      def recycle!
        @mon_mutex_owner_object_id = nil
        @mon_mutex = nil
        initialize
      end
    end
  else
    raise 'This monkey patch is no longer needed. Please remove this.'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hubstats-1.2.1 spec/test_response_patch.rb
hubstats-1.2.0 spec/test_response_patch.rb