In rails-2.3 parse_query_parameters is in RequestParser
This commit is contained in:
parent
9825aee47e
commit
076e198287
|
@ -79,7 +79,11 @@ module Webrat
|
|||
|
||||
case Webrat.configuration.mode
|
||||
when :rails
|
||||
if defined?(ActionController::RequestParser)
|
||||
ActionController::RequestParser.parse_query_parameters("#{name}=#{escaped_value}")
|
||||
else
|
||||
ActionController::AbstractRequest.parse_query_parameters("#{name}=#{escaped_value}")
|
||||
end
|
||||
when :merb
|
||||
::Merb::Parse.query("#{name}=#{escaped_value}")
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue