aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorCasebook Developer <casebook-dev@googlegroups.com>2011-08-04 13:34:47 -0400
committerCasebook Developer <casebook-dev@googlegroups.com>2011-08-04 13:34:47 -0400
commitf0034c75d5a9bc5065652c2fedf39250a6f1847b (patch)
treea82df412b2a8494bb760f282ad201c44f5082272 /actionpack/lib/action_view
parent3a4dc9d34c1cde8bf34dfa4b4600fb8bcef9eb45 (diff)
downloadrails-f0034c75d5a9bc5065652c2fedf39250a6f1847b.tar.gz
rails-f0034c75d5a9bc5065652c2fedf39250a6f1847b.tar.bz2
rails-f0034c75d5a9bc5065652c2fedf39250a6f1847b.zip
ActionView::Helpers::TextHelper#simple_format should not change the text in place. Now it duplicates it.
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/helpers/text_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb
index ae71ade588..21074efe86 100644
--- a/actionpack/lib/action_view/helpers/text_helper.rb
+++ b/actionpack/lib/action_view/helpers/text_helper.rb
@@ -256,7 +256,7 @@ module ActionView
# # => "<p><span>I'm allowed!</span> It's true.</p>"
def simple_format(text, html_options={}, options={})
text = '' if text.nil?
- text = text.dup if text.frozen?
+ text = text.dup
start_tag = tag('p', html_options, true)
text = sanitize(text) unless options[:sanitize] == false
text = text.to_str