Rename Field#value to Field#escaped_value

This commit is contained in:
Bryan Helmkamp 2008-10-21 22:05:21 -04:00
parent e4cbf943a9
commit 8c73680e64

View File

@ -56,7 +56,7 @@ module Webrat
def to_param def to_param
return nil if disabled? return nil if disabled?
param_parser.parse_query_parameters("#{name}=#{value}") param_parser.parse_query_parameters("#{name}=#{escaped_value}")
end end
def set(value) def set(value)
@ -77,7 +77,7 @@ module Webrat
@element["name"] @element["name"]
end end
def value def escaped_value
CGI.escape(@value.to_s) CGI.escape(@value.to_s)
end end