diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-05-13 18:35:35 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-05-13 18:35:36 -0300 |
commit | ecfb32cd165c0763befb7eed7e348438db928cef (patch) | |
tree | ab2507945fd7880090973766b4858adc743581dc /actionpack/lib/action_view | |
parent | 60de8010609ac7ac78fc19fa60b4d5805b4e511f (diff) | |
download | rails-ecfb32cd165c0763befb7eed7e348438db928cef.tar.gz rails-ecfb32cd165c0763befb7eed7e348438db928cef.tar.bz2 rails-ecfb32cd165c0763befb7eed7e348438db928cef.zip |
Remove dependency on safe_join from number helpers
Introduced in 0f848dd54911f0e15c5c3aceabf09582cc6eab16.
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/number_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |