aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorPat Allan <pat@freelancing-gods.com>2017-06-20 22:20:04 +1000
committerPat Allan <pat@freelancing-gods.com>2017-06-20 22:20:04 +1000
commit3d453b409d037a056d0bcd636a2e020cc7cef4a8 (patch)
tree2b1bc8943f5b064fb74e2d7022a882547c82c21f /actionpack/lib/action_controller
parentdd491b24ff28f637b1c8879002adb1acdf20a8ac (diff)
downloadrails-3d453b409d037a056d0bcd636a2e020cc7cef4a8.tar.gz
rails-3d453b409d037a056d0bcd636a2e020cc7cef4a8.tar.bz2
rails-3d453b409d037a056d0bcd636a2e020cc7cef4a8.zip
Make ActionView frozen string literal friendly.
Plus a couple of related ActionPack patches.
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/log_subscriber.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/log_subscriber.rb b/actionpack/lib/action_controller/log_subscriber.rb
index d00fcbcd13..5d75393897 100644
--- a/actionpack/lib/action_controller/log_subscriber.rb
+++ b/actionpack/lib/action_controller/log_subscriber.rb
@@ -24,7 +24,7 @@ module ActionController
exception_class_name = payload[:exception].first
status = ActionDispatch::ExceptionWrapper.status_code_for_exception(exception_class_name)
end
- message = "Completed #{status} #{Rack::Utils::HTTP_STATUS_CODES[status]} in #{event.duration.round}ms"
+ message = "Completed #{status} #{Rack::Utils::HTTP_STATUS_CODES[status]} in #{event.duration.round}ms".dup
message << " (#{additions.join(" | ".freeze)})" unless additions.empty?
message << "\n\n" if defined?(Rails.env) && Rails.env.development?