diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2019-02-15 11:35:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-15 11:35:26 -0500 |
commit | a25282ed1e43ea04556c9243b5dc4d62517f43ef (patch) | |
tree | 663ebb5ecbbfed9935e2ff133abed680ba648e2c /actionpack | |
parent | c0e32881950bd7e91af73578e00c07654beabc87 (diff) | |
parent | 341b5176c232b73b48e37b7f5517686caceed27f (diff) | |
download | rails-a25282ed1e43ea04556c9243b5dc4d62517f43ef.tar.gz rails-a25282ed1e43ea04556c9243b5dc4d62517f43ef.tar.bz2 rails-a25282ed1e43ea04556c9243b5dc4d62517f43ef.zip |
Merge pull request #35289 from LinkUpStudioUA/master
AbstractController::Translation#t: dup options
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/abstract_controller/translation.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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}"] |