From 54117b69615b5b1ba05bd9fcaec5cc66347828de Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Wed, 11 Jan 2012 20:08:43 -0200 Subject: [PATCH] Tiny refactor --- actionpack/lib/action_view/helpers/output_safety_helper.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/actionpack/lib/action_view/helpers/output_safety_helper.rb b/actionpack/lib/action_view/helpers/output_safety_helper.rb index a035dd70ad..b36723ee1b 100644 --- a/actionpack/lib/action_view/helpers/output_safety_helper.rb +++ b/actionpack/lib/action_view/helpers/output_safety_helper.rb @@ -28,11 +28,10 @@ module ActionView #:nodoc: # # => "

foo


bar

" # def safe_join(array, sep=$,) - sep ||= "".html_safe - sep = ERB::Util.html_escape(sep) + sep = ERB::Util.html_escape(sep || "") array.map { |i| ERB::Util.html_escape(i) }.join(sep).html_safe end end end -end \ No newline at end of file +end