Ruby 1.9 compatibility: Avoid calling #to_s on Arrays
[#249 state:resolved]
This commit is contained in:
parent
b75ff6221b
commit
8b98540aef
@ -24,6 +24,7 @@
|
|||||||
* Bug fixes
|
* Bug fixes
|
||||||
|
|
||||||
* Translate CSS and image paths with single quotes in save_and_open_page (Erin Staniland)
|
* Translate CSS and image paths with single quotes in save_and_open_page (Erin Staniland)
|
||||||
|
* Ruby 1.9 compatibility: Avoid calling #to_s on Arrays (Jakub Kuźma)
|
||||||
|
|
||||||
== 0.4.4 / 2009-04-06
|
== 0.4.4 / 2009-04-06
|
||||||
|
|
||||||
|
@ -134,7 +134,8 @@ module Webrat
|
|||||||
end
|
end
|
||||||
|
|
||||||
def escaped_value
|
def escaped_value
|
||||||
CGI.escape(@value.to_s)
|
value = @value.respond_to?(:join) ? @value.join : @value
|
||||||
|
value ? CGI.escape(value) : ""
|
||||||
end
|
end
|
||||||
|
|
||||||
def labels
|
def labels
|
||||||
|
Loading…
Reference in New Issue
Block a user