Skip to content
Snippets Groups Projects
Commit a27e9829 authored by Alex Reisner's avatar Alex Reisner
Browse files

Merge pull request #1061 from alepore/middleware-fix

try Rack::Request if ActionDispatch::Request is not defined, fixes #1060
parents 88ce233b e7df0dc9
No related branches found
No related tags found
No related merge requests found
......@@ -80,4 +80,6 @@ end
if defined?(ActionDispatch::Request)
ActionDispatch::Request.include Geocoder::Request
elsif defined?(Rack::Request)
Rack::Request.include Geocoder::Request
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment