In rails-2.3 parse_query_parameters is in RequestParser

This commit is contained in:
Marcello Nuccio 2009-01-07 03:17:26 +01:00
parent 9825aee47e
commit 076e198287
1 changed files with 5 additions and 1 deletions

View File

@ -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