Change query params parser to work with Edge Rails

This commit is contained in:
Bryan Helmkamp 2009-01-20 00:20:12 -05:00
parent d64bba627e
commit 0204c2766d
2 changed files with 5 additions and 3 deletions

View File

@ -2,6 +2,7 @@
* Bug fixes
* Update query param parsing to work with latest Edge Rails
* Ensure the previous pages params aren't passed through redirect
* Labels should only search for fields within the current scope (Kyle Hargraves)

View File

@ -98,10 +98,11 @@ module Webrat
protected
def rails_request_parser
if defined?(ActionController::RequestParser) # For Rails > 2.2
ActionController::RequestParser
else
if defined?(ActionController::AbstractRequest)
ActionController::AbstractRequest
else
# For Rails > 2.2
ActionController::UrlEncodedPairParser
end
end