diff --git a/lib/geocoder/request.rb b/lib/geocoder/request.rb index 2b924bd3248de04befa6d8a36fd929ef339769ed..9ae63557c292d4c8b9cc13c8bbc33c44fc39f20c 100644 --- a/lib/geocoder/request.rb +++ b/lib/geocoder/request.rb @@ -78,6 +78,6 @@ module Geocoder end end -if defined?(Rack) and defined?(Rack::Request) - Rack::Request.send :include, Geocoder::Request +if defined?(ActionDispatch::Request) + ActionDispatch::Request.include Geocoder::Request end