X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/53b4d645d80cbe4ac397cfc004e8985317aed6a8..e756dbae7f3715561de5688e6503b60fdfe0327d:/vendor/plugins/http_accept_language/init.rb?ds=sidebyside diff --git a/vendor/plugins/http_accept_language/init.rb b/vendor/plugins/http_accept_language/init.rb index 67e2687e3..050a7ca56 100644 --- a/vendor/plugins/http_accept_language/init.rb +++ b/vendor/plugins/http_accept_language/init.rb @@ -1,4 +1,6 @@ -if defined?(ActionController::Request) +if defined?(ActionDispatch::Request) + ActionDispatch::Request.send :include, HttpAcceptLanguage +elsif defined?(ActionController::Request) ActionController::Request.send :include, HttpAcceptLanguage elsif defined?(ActionController::AbstractRequest) ActionController::AbstractRequest.send :include, HttpAcceptLanguage