Permalink
Browse files

Fix tests

  • Loading branch information...
1 parent f480ee0 commit d6a1eba72eb6bf8c91c66be4a364dc8509f96d15 @iain committed Feb 25, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/http_accept_language.rb
@@ -54,6 +54,6 @@ def compatible_language_from(array)
ActionController::Request.send :include, HttpAcceptLanguage
elsif defined?(ActionController::AbstractRequest)
ActionController::AbstractRequest.send :include, HttpAcceptLanguage
-else
+elsif defined?(ActionController::CgiRequest)
ActionController::CgiRequest.send :include, HttpAcceptLanguage
end

0 comments on commit d6a1eba

Please sign in to comment.