We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e87775 commit e6a2085Copy full SHA for e6a2085
1 file changed
src/main/ruby/jruby/rack/rack_ext.rb
@@ -38,18 +38,18 @@ def render(path, params={})
38
end
39
40
41
- if JRUBY_VERSION >= '9.4'
42
- ::Rack::Request::Helpers.module_eval do
43
- include ::JRuby::Rack::RackExt::RequestHelpers
44
- end
45
- else
+ if JRUBY_VERSION.start_with?("9.3")
46
::Rack::Request.module_eval do
47
include ::JRuby::Rack::RackExt::RequestHelpers
48
49
50
::ActionDispatch::Request.module_eval do
51
52
end if defined?(::ActionDispatch::Request)
+ else
+ ::Rack::Request::Helpers.module_eval do
+ include ::JRuby::Rack::RackExt::RequestHelpers
+ end
53
54
55
0 commit comments