mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
No need to dup temporary strings
This commit is contained in:
parent
fc2e836aed
commit
30a73035c7
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ module ActionDispatch
|
|||
end
|
||||
|
||||
parameters = route.defaults.merge parameters.transform_values { |val|
|
||||
val.dup.force_encoding(::Encoding::UTF_8)
|
||||
val.force_encoding(::Encoding::UTF_8)
|
||||
}
|
||||
|
||||
req.path_parameters = set_params.merge parameters
|
||||
|
|
Loading…
Reference in a new issue