aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/live.rb
diff options
context:
space:
mode:
authorKir Shatrov <shatrov@me.com>2017-07-24 23:20:53 +0300
committerKir Shatrov <shatrov@me.com>2017-07-29 14:02:40 +0300
commitdfcc766163fa58389a6fe6dc5788533a455f8a89 (patch)
treec167e5e4ba9691dcbb543f2e07d716fcf11bfa4d /actionpack/lib/action_controller/metal/live.rb
parent904f1a8747958129124d86b44e36c5f0263e0125 (diff)
downloadrails-dfcc766163fa58389a6fe6dc5788533a455f8a89.tar.gz
rails-dfcc766163fa58389a6fe6dc5788533a455f8a89.tar.bz2
rails-dfcc766163fa58389a6fe6dc5788533a455f8a89.zip
Use frozen string literal in actionpack/
Diffstat (limited to 'actionpack/lib/action_controller/metal/live.rb')
-rw-r--r--actionpack/lib/action_controller/metal/live.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/live.rb b/actionpack/lib/action_controller/metal/live.rb
index a607ee2309..2f4c8fb83c 100644
--- a/actionpack/lib/action_controller/metal/live.rb
+++ b/actionpack/lib/action_controller/metal/live.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require "action_dispatch/http/response"
require "delegate"
require "active_support/json"
@@ -295,7 +297,7 @@ module ActionController
return unless logger
logger.fatal do
- 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 ")
"#{message}\n\n"