diff options
author | Sergey Nartimov <just.lest@gmail.com> | 2012-04-26 21:24:12 +0300 |
---|---|---|
committer | Sergey Nartimov <just.lest@gmail.com> | 2012-04-26 21:24:12 +0300 |
commit | 0f848dd54911f0e15c5c3aceabf09582cc6eab16 (patch) | |
tree | a593ed98fc07fce75eb9cfc4d2c755c09c1c0f5f /actionpack | |
parent | 14d1e554d93619c5d57c5921d308a05257198393 (diff) | |
download | rails-0f848dd54911f0e15c5c3aceabf09582cc6eab16.tar.gz rails-0f848dd54911f0e15c5c3aceabf09582cc6eab16.tar.bz2 rails-0f848dd54911f0e15c5c3aceabf09582cc6eab16.zip |
use safe_join in number helper
Diffstat (limited to 'actionpack')
-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 d44e6d0496..2011351bd2 100644 --- a/actionpack/lib/action_view/helpers/number_helper.rb +++ b/actionpack/lib/action_view/helpers/number_helper.rb @@ -233,7 +233,7 @@ module ActionView parts = number.to_s.to_str.split('.') parts[0].gsub!(/(\d)(?=(\d\d\d)+(?!\d))/, "\\1#{options[:delimiter]}") - parts.join(options[:separator]).html_safe + safe_join(parts, options[:separator]) end # Formats a +number+ with the specified level of <tt>:precision</tt> (e.g., 112.32 has a precision |