public
Description: Ruby on Rails plugin. Fishes out the Accept-Language header into an array.
Homepage: http://rails-i18n.org/
Clone URL: git://github.com/iain/http_accept_language.git
100644 8 lines (7 sloc) 0.295 kb
1
2
3
4
5
6
7
8
if defined?(ActionController::Request)
  ActionController::Request.send :include, HttpAcceptLanguage
elsif defined?(ActionController::AbstractRequest)
  ActionController::AbstractRequest.send :include, HttpAcceptLanguage
else
  ActionController::CgiRequest.send :include, HttpAcceptLanguage
end