From 341b5176c232b73b48e37b7f5517686caceed27f Mon Sep 17 00:00:00 2001 From: Nazar Matus Date: Fri, 15 Feb 2019 18:21:41 +0200 Subject: [PATCH] AbstractController::Translation#t: dup options --- actionpack/lib/abstract_controller/translation.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/actionpack/lib/abstract_controller/translation.rb b/actionpack/lib/abstract_controller/translation.rb index 666e154e4c..4dad2a2b93 100644 --- a/actionpack/lib/abstract_controller/translation.rb +++ b/actionpack/lib/abstract_controller/translation.rb @@ -11,6 +11,7 @@ module AbstractController # to translate many keys within the same controller / action and gives you a # simple framework for scoping them consistently. def translate(key, options = {}) + options = options.dup if key.to_s.first == "." path = controller_path.tr("/", ".") defaults = [:"#{path}#{key}"]