From 3b1c30c99ff1f3f5e970e3fa696d3291d5897bd7 Mon Sep 17 00:00:00 2001 From: Vasiliy Ermolovich Date: Fri, 18 May 2012 18:17:43 +0300 Subject: doesn't modify params in SafeBuffer#% --- activesupport/lib/active_support/core_ext/string/output_safety.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/core_ext/string/output_safety.rb b/activesupport/lib/active_support/core_ext/string/output_safety.rb index f98d5b3777..5226ff0cbe 100644 --- a/activesupport/lib/active_support/core_ext/string/output_safety.rb +++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb @@ -151,9 +151,7 @@ module ActiveSupport #:nodoc: end def %(args) - args = Array(args) - - args.map! do |arg| + args = Array(args).map do |arg| if !html_safe? || arg.html_safe? arg else -- cgit v1.2.3