diff options
author | Joel Cogen <joel@redilio.us> | 2013-07-23 14:29:24 +0200 |
---|---|---|
committer | Joel Cogen <joel@redilio.us> | 2013-07-24 08:39:17 +0200 |
commit | 1424873948a98ab30ac4b5eed35d3de59a54b92a (patch) | |
tree | 4e7c1278b45a7a128d1e3e0b0b945a7119ab9930 /actionview/lib/action_view/helpers/tags/text_area.rb | |
parent | 3a4d0b1e2975122defe86de31fc35ab2dcd9b984 (diff) | |
download | rails-1424873948a98ab30ac4b5eed35d3de59a54b92a.tar.gz rails-1424873948a98ab30ac4b5eed35d3de59a54b92a.tar.bz2 rails-1424873948a98ab30ac4b5eed35d3de59a54b92a.zip |
text_area should handle nil value option like text_field
Diffstat (limited to 'actionview/lib/action_view/helpers/tags/text_area.rb')
-rw-r--r-- | actionview/lib/action_view/helpers/tags/text_area.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/tags/text_area.rb b/actionview/lib/action_view/helpers/tags/text_area.rb index c81156c0c8..9ee83ee7c2 100644 --- a/actionview/lib/action_view/helpers/tags/text_area.rb +++ b/actionview/lib/action_view/helpers/tags/text_area.rb @@ -10,7 +10,7 @@ module ActionView options["cols"], options["rows"] = size.split("x") if size.respond_to?(:split) end - content_tag("textarea", options.delete('value') || value_before_type_cast(object), options) + content_tag("textarea", options.delete("value") { value_before_type_cast(object) }, options) end end end |