From ecfb32cd165c0763befb7eed7e348438db928cef Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Sun, 13 May 2012 18:35:35 -0300 Subject: Remove dependency on safe_join from number helpers Introduced in 0f848dd54911f0e15c5c3aceabf09582cc6eab16. --- actionpack/lib/action_view/helpers/number_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_view/helpers/number_helper.rb b/actionpack/lib/action_view/helpers/number_helper.rb index dfc26acfad..62455b97f9 100644 --- a/actionpack/lib/action_view/helpers/number_helper.rb +++ b/actionpack/lib/action_view/helpers/number_helper.rb @@ -254,7 +254,7 @@ module ActionView parts = number.to_s.to_str.split('.') parts[0].gsub!(/(\d)(?=(\d\d\d)+(?!\d))/, "\\1#{options[:delimiter]}") - safe_join(parts, options[:separator]) + parts.join(options[:separator]).html_safe end # Formats a +number+ with the specified level of -- cgit v1.2.3