diff options
author | Kir Shatrov <shatrov@me.com> | 2017-07-23 22:28:31 +0300 |
---|---|---|
committer | Kir Shatrov <shatrov@me.com> | 2017-07-23 23:13:15 +0300 |
commit | 65a45970394e659e52d659e50f6a2d070f823431 (patch) | |
tree | 7e1599ec497fa629d4f38eaeb2cc6a6db32c3d00 /actionview/lib/action_view/renderer | |
parent | 127b475dc251a06942fe0cd2de2e0545cf5ed69f (diff) | |
download | rails-65a45970394e659e52d659e50f6a2d070f823431.tar.gz rails-65a45970394e659e52d659e50f6a2d070f823431.tar.bz2 rails-65a45970394e659e52d659e50f6a2d070f823431.zip |
Make actionview ready for frozen strings
Diffstat (limited to 'actionview/lib/action_view/renderer')
-rw-r--r-- | actionview/lib/action_view/renderer/streaming_template_renderer.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionview/lib/action_view/renderer/streaming_template_renderer.rb b/actionview/lib/action_view/renderer/streaming_template_renderer.rb index 62ce985243..e54f9b8977 100644 --- a/actionview/lib/action_view/renderer/streaming_template_renderer.rb +++ b/actionview/lib/action_view/renderer/streaming_template_renderer.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "fiber" module ActionView @@ -31,7 +32,7 @@ module ActionView logger = ActionView::Base.logger return unless logger - message = "\n#{exception.class} (#{exception.message}):\n" + message = "\n#{exception.class} (#{exception.message}):\n".dup message << exception.annoted_source_code.to_s if exception.respond_to?(:annoted_source_code) message << " " << exception.backtrace.join("\n ") logger.fatal("#{message}\n\n") |