diff options
author | Casebook Developer <casebook-dev@googlegroups.com> | 2011-08-04 13:34:47 -0400 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-08-13 16:22:29 -0700 |
commit | ebfca248f9084f8176f6b5b993d9c3c99d06737b (patch) | |
tree | 220e909c1acd2a74446d871967d7bbdc545b2317 /actionpack/lib | |
parent | 6b8091731445dcd0a1843c59b84cd4e2b5b8b66c (diff) | |
download | rails-ebfca248f9084f8176f6b5b993d9c3c99d06737b.tar.gz rails-ebfca248f9084f8176f6b5b993d9c3c99d06737b.tar.bz2 rails-ebfca248f9084f8176f6b5b993d9c3c99d06737b.zip |
ActionView::Helpers::TextHelper#simple_format should not change the text in place. Now it duplicates it.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/text_helper.rb | 2 |
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 |