Change query params parser to work with Edge Rails
This commit is contained in:
parent
d64bba627e
commit
0204c2766d
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
* Bug fixes
|
* Bug fixes
|
||||||
|
|
||||||
|
* Update query param parsing to work with latest Edge Rails
|
||||||
* Ensure the previous pages params aren't passed through redirect
|
* Ensure the previous pages params aren't passed through redirect
|
||||||
* Labels should only search for fields within the current scope (Kyle Hargraves)
|
* Labels should only search for fields within the current scope (Kyle Hargraves)
|
||||||
|
|
||||||
|
@ -98,10 +98,11 @@ module Webrat
|
|||||||
protected
|
protected
|
||||||
|
|
||||||
def rails_request_parser
|
def rails_request_parser
|
||||||
if defined?(ActionController::RequestParser) # For Rails > 2.2
|
if defined?(ActionController::AbstractRequest)
|
||||||
ActionController::RequestParser
|
|
||||||
else
|
|
||||||
ActionController::AbstractRequest
|
ActionController::AbstractRequest
|
||||||
|
else
|
||||||
|
# For Rails > 2.2
|
||||||
|
ActionController::UrlEncodedPairParser
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user