Skip to content
Snippets Groups Projects
Commit 07aeeab9 authored by Will Jordan's avatar Will Jordan Committed by Thu Trang Pham
Browse files

always add geocoder to Rack::Request if defined (#1085)

parent 07980edd
No related branches found
No related tags found
No related merge requests found
......@@ -78,8 +78,5 @@ module Geocoder
end
end
if defined?(ActionDispatch::Request)
ActionDispatch::Request.__send__(:include, Geocoder::Request)
elsif defined?(Rack::Request)
Rack::Request.__send__(:include, Geocoder::Request)
end
ActionDispatch::Request.__send__(:include, Geocoder::Request) if defined?(ActionDispatch::Request)
Rack::Request.__send__(:include, Geocoder::Request) if defined?(Rack::Request)
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