- 24 12月, 2015 1 次提交
-
-
由 Derek Prior 提交于
I've worked on a few applications that have gone through the internationalization process and had issues because they were using `number_to_currency`. The minute a user is allowed to change their locale, they can change the price displayed on a page from 10 US dollars to 10 Mexican Pesos, which is far from the same amount of money. Unlike other helpers that rely on i18n, `number_to_currency` does not produce equivalent results when the locale is changed. As I've explained this to a few groups of developers now, I thought it might make for a good caveat in the docs.
-
- 22 9月, 2015 1 次提交
-
-
由 amitkumarsuroliya 提交于
Here is correct output of `number_to_percentage(100, format: "%n %”)`
-
- 21 9月, 2015 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 24 5月, 2015 1 次提交
-
-
由 claudiob 提交于
-
- 04 3月, 2015 1 次提交
-
-
由 Yu Haidong 提交于
-
- 03 2月, 2015 1 次提交
-
-
由 Vipul A M 提交于
-
- 28 10月, 2014 1 次提交
-
-
由 Ryunosuke SATO 提交于
The character "*" is unnecessary in option candidates. This incorrect markup was injected in e8c9aeca .
-
- 11 6月, 2014 2 次提交
-
-
由 Akshay Vishnoi 提交于
-
由 Akshay Vishnoi 提交于
-
- 19 2月, 2014 1 次提交
-
-
由 Rafael Mendonça França 提交于
Previously the values of these options were trusted leading to potential XSS vulnerabilities. Fixes: CVE-2014-0081
-
- 04 12月, 2013 1 次提交
-
-
由 Rafael Mendonça França 提交于
Now users have to explicit mark the unit as safe if they trust it. Closes #13161 Conflicts: actionpack/lib/action_view/helpers/number_helper.rb actionpack/test/template/number_helper_i18n_test.rb
-
- 03 12月, 2013 1 次提交
-
-
由 Michael Koziarski 提交于
Previously the unit values were trusted leading to potential XSS vulnerabilities. Fixes: CVE-2013-6415
-
- 10 11月, 2013 1 次提交
-
-
由 Rafael Mendonça França 提交于
This is the only argument that changes over the method calls so it is better to it be the first one
-
- 09 11月, 2013 1 次提交
-
-
由 Vipul A M 提交于
-
- 20 6月, 2013 1 次提交
-
-
由 Piotr Sarnacki 提交于
-
- 04 4月, 2013 1 次提交
-
-
由 Francesco Rodriguez 提交于
-
- 05 12月, 2012 1 次提交
-
-
由 Vijay Dev 提交于
-
- 02 12月, 2012 1 次提交
-
-
由 Alvaro Pereyra 提交于
-
- 29 10月, 2012 1 次提交
-
-
由 AvnerCohen 提交于
-
- 25 6月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
ActiveSupport::NumberHelper does not make use of :raise, so there's no need to propagate it down.
-
- 29 5月, 2012 2 次提交
-
-
由 Carlos Antonio da Silva 提交于
Some of these requires are now only necessary in ActiveSupport::NumberHelper. Add hash/keys require due to symbolize_keys usage in number helpers. Also remove some whitespaces. Closes #6414
-
由 Carlos Antonio da Silva 提交于
Refactor number helpers output with safety handling to call float parsing only once. Also remove 'erb' require.
-
- 28 5月, 2012 1 次提交
-
-
由 Andrew Mutz 提交于
-
- 24 5月, 2012 1 次提交
-
- 20 5月, 2012 1 次提交
-
-
由 Henrik Hodne 提交于
For future reference, this is the regex I used: ^\s*#\s*\n(?!\s*#). Replace with the first match, and voilà! Note that the regex matches a little bit too much, so you probably want to `git add -i .` and go through every single diff to check if it actually should be changed.
-
- 19 5月, 2012 1 次提交
-
-
由 Andrew Mutz 提交于
reverting decoupling of NumberHelper from safe_join and adding tests for escaping of delimiters and separators
-
- 14 5月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
Introduced in 0f848dd5.
-
- 08 5月, 2012 1 次提交
-
-
由 Mark J. Titorenko 提交于
Fix NumberHelper options wrapping to prevent verbatim blocks being rendered instead of line continuations. While I'm at it, wrap long comment lines consistently.
-
- 27 4月, 2012 1 次提交
-
-
由 Sergey Nartimov 提交于
-
- 26 4月, 2012 1 次提交
-
-
由 Vijay Dev 提交于
-
- 10 4月, 2012 1 次提交
-
-
由 Sergey Nartimov 提交于
-
- 03 4月, 2012 1 次提交
-
-
由 Jurriaan Pruis 提交于
-
- 27 3月, 2012 1 次提交
-
-
由 Tim McEwan 提交于
-
- 25 1月, 2012 4 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
-
- 21 1月, 2012 3 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-