1 if defined?(ActionDispatch::Request)
2 ActionDispatch::Request.send :include, HttpAcceptLanguage
3 elsif defined?(ActionController::Request)
4 ActionController::Request.send :include, HttpAcceptLanguage
5 elsif defined?(ActionController::AbstractRequest)
6 ActionController::AbstractRequest.send :include, HttpAcceptLanguage
8 ActionController::CgiRequest.send :include, HttpAcceptLanguage