Field#to_param should return a hash when Merb is not defined for Mechanize support [#62 state:resolved]
This commit is contained in:
parent
5a9c048dfb
commit
df9d8179c0
@ -76,8 +76,10 @@ module Webrat
|
|||||||
CGIMethods.parse_query_parameters(key_and_value)
|
CGIMethods.parse_query_parameters(key_and_value)
|
||||||
elsif defined?(ActionController::AbstractRequest)
|
elsif defined?(ActionController::AbstractRequest)
|
||||||
ActionController::AbstractRequest.parse_query_parameters(key_and_value)
|
ActionController::AbstractRequest.parse_query_parameters(key_and_value)
|
||||||
else
|
elsif defined?(::Merb)
|
||||||
::Merb::Parse.query(key_and_value)
|
::Merb::Parse.query(key_and_value)
|
||||||
|
else
|
||||||
|
{ name => escaped_value } # For mechanize
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user