Skip to content
Snippets Groups Projects
Commit 04c9eca2 authored by Alessandro Lepore's avatar Alessandro Lepore Committed by Thu Trang Pham
Browse files

Include Geocoder::Request in ActionDispatch::Request instead of Rack::Request, closes #966 (#1041)

parent 9e023e3d
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,6 @@ module Geocoder ...@@ -78,6 +78,6 @@ module Geocoder
end end
end end
if defined?(Rack) and defined?(Rack::Request) if defined?(ActionDispatch::Request)
Rack::Request.send :include, Geocoder::Request ActionDispatch::Request.include Geocoder::Request
end 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