aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/tags/text_area.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2012-05-12 14:42:35 +0200
committerJosé Valim <jose.valim@gmail.com>2012-05-12 14:42:35 +0200
commiteab0520e132e373618f6e3ce585ebd71ec501e97 (patch)
tree259dc98963312cfa2ae73e96f92f19d94c1815b6 /actionpack/lib/action_view/helpers/tags/text_area.rb
parent3a59eab5f78f4c11915eba150c88ce384d046dff (diff)
downloadrails-eab0520e132e373618f6e3ce585ebd71ec501e97.tar.gz
rails-eab0520e132e373618f6e3ce585ebd71ec501e97.tar.bz2
rails-eab0520e132e373618f6e3ce585ebd71ec501e97.zip
Revert "Merge pull request #6142 from spartan-developer/master"
This reverts commit 667d0bdd90ef6e6b691f0cc4cf5535b8da69f248, reversing changes made to 4ae6bab6bb02c9390188a49f9a749400f6a0ac94.
Diffstat (limited to 'actionpack/lib/action_view/helpers/tags/text_area.rb')
-rw-r--r--actionpack/lib/action_view/helpers/tags/text_area.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/tags/text_area.rb b/actionpack/lib/action_view/helpers/tags/text_area.rb
index 160f020263..f74652c5e7 100644
--- a/actionpack/lib/action_view/helpers/tags/text_area.rb
+++ b/actionpack/lib/action_view/helpers/tags/text_area.rb
@@ -6,7 +6,9 @@ module ActionView
options = @options.stringify_keys
add_default_name_and_id(options)
- extract_size!(options, 'cols', 'rows')
+ if size = options.delete("size")
+ 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)
end