aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-09-02 14:08:46 +0900
committerGitHub <noreply@github.com>2017-09-02 14:08:46 +0900
commitd24efb79cc438987358f0d4fa3b1da8615a8ed51 (patch)
treee8ea50bbde477d4c49adab8c06096f128bab9ace /actionpack/lib
parentea0afe9de24f175e125ab1647f91cf52bcfe536b (diff)
parent3ee59eec2ffd07d1e4b12ef047495fb9d1ee13ce (diff)
downloadrails-d24efb79cc438987358f0d4fa3b1da8615a8ed51.tar.gz
rails-d24efb79cc438987358f0d4fa3b1da8615a8ed51.tar.bz2
rails-d24efb79cc438987358f0d4fa3b1da8615a8ed51.zip
Merge pull request #30493 from koic/fix_cant_modify_frozen_string_error_in_ac_rendering
Fix `can't modify frozen String` error in AC::Rendering
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/metal/rendering.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/rendering.rb b/actionpack/lib/action_controller/metal/rendering.rb
index 456a7cf71c..6d181e6456 100644
--- a/actionpack/lib/action_controller/metal/rendering.rb
+++ b/actionpack/lib/action_controller/metal/rendering.rb
@@ -40,7 +40,7 @@ module ActionController
def render_to_string(*)
result = super
if result.respond_to?(:each)
- string = ""
+ string = "".dup
result.each { |r| string << r }
string
else