Make http_accept_language work with rails 3.1.0
This commit is contained in:
parent
8acdba8bdd
commit
8d520578a1
1 changed files with 3 additions and 1 deletions
4
vendor/plugins/http_accept_language/init.rb
vendored
4
vendor/plugins/http_accept_language/init.rb
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue