Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string" | Matthew Draper | 2017-07-02 | 1 | -1/+0 |
| | | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa. | ||||
* | Enforce frozen string in Rubocop | Kir Shatrov | 2017-07-01 | 1 | -0/+1 |
| | |||||
* | Fix grammar 'an hyphen' -> 'a hyphen' [ci skip] | kenta-s | 2017-01-25 | 1 | -1/+1 |
| | |||||
* | Add missing option on numbers helper | Pablo Ifran | 2016-12-17 | 1 | -0/+6 |
| | | | | | The `delimiter_pattern` option was not present on the documentaion of the helper. | ||||
* | applies remaining conventions across the project | Xavier Noria | 2016-08-06 | 1 | -2/+0 |
| | |||||
* | normalizes indentation and whitespace across the project | Xavier Noria | 2016-08-06 | 1 | -38/+38 |
| | |||||
* | applies new string literal convention in actionview/lib | Xavier Noria | 2016-08-06 | 1 | -3/+3 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | remove deprecated `:prefix` option from doc [ci skip] | yuuji.yaginuma | 2016-06-09 | 1 | -2/+0 |
| | | | | The option was deprecated in #21191. | ||||
* | `number_to_phone` formats number with regexp | Pan GaoYong | 2016-04-02 | 1 | -1/+8 |
| | | | | | | | | | | | | By default, this method formats US number. This commit extends its functionality to format number for other countries with a custom regular expression. number_to_phone(18812345678, pattern: /(\d{3})(\d{4})(\d{4})/) # => 188-1234-5678 The output phone number is divided into three groups, so the regexp should also match three groups of numbers. | ||||
* | Merge pull request #22759 from akshay-vishnoi/human-size-helper | Eileen M. Uchitelle | 2015-12-27 | 1 | -0/+2 |
|\ | | | | | Add support for Petabyte and Exabyte in number to human size | ||||
| * | Add support for Petabyte and Exabyte in number to human size | Akshay Vishnoi | 2015-12-22 | 1 | -0/+2 |
| | | |||||
* | | Add caveat to number_to_currency docs [ci skip] | Derek Prior | 2015-12-23 | 1 | -0/+8 |
|/ | | | | | | | | | | | | | | 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. | ||||
* | Correcting output of `number_to_percentage` example in `number_helper` [ci skip] | amitkumarsuroliya | 2015-09-22 | 1 | -1/+1 |
| | | | Here is correct output of `number_to_percentage(100, format: "%n %”)` | ||||
* | :scissors: empty line at the top of files | Akira Matsuda | 2015-09-21 | 1 | -1/+0 |
| | |||||
* | [ci skip] Fix typo you/your | claudiob | 2015-05-23 | 1 | -1/+1 |
| | |||||
* | Fix spelling [ci skip] | Yu Haidong | 2015-03-04 | 1 | -8/+8 |
| | |||||
* | Removed magic comments # encoding: utf-8 , since its default from ruby 2.0 ↵ | Vipul A M | 2015-02-03 | 1 | -1/+0 |
| | | | | onwards. | ||||
* | Fix doc markup for `NumberHelper` [ci skip] | Ryunosuke SATO | 2014-10-29 | 1 | -5/+5 |
| | | | | | The character "*" is unnecessary in option candidates. This incorrect markup was injected in e8c9aeca . | ||||
* | [ci skip] Add Docs for strip_insignificant_zeros option in number helpers | Akshay Vishnoi | 2014-06-10 | 1 | -10/+8 |
| | |||||
* | [ci skip] Correct output and use valid options of number helpers | Akshay Vishnoi | 2014-06-10 | 1 | -2/+2 |
| | |||||
* | Escape format, negative_format and units options of number helpers | Rafael Mendonça França | 2014-02-18 | 1 | -5/+14 |
| | | | | | | | Previously the values of these options were trusted leading to potential XSS vulnerabilities. Fixes: CVE-2014-0081 | ||||
* | Fix documentation of number_to_currency helper | Rafael Mendonça França | 2013-12-04 | 1 | -4/+4 |
| | | | | | | | | | | 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 | ||||
* | Escape the unit value provided to number_to_currency | Michael Koziarski | 2013-12-02 | 1 | -0/+1 |
| | | | | | | Previously the unit values were trusted leading to potential XSS vulnerabilities. Fixes: CVE-2013-6415 | ||||
* | Make the method name the first argument | Rafael Mendonça França | 2013-11-09 | 1 | -7/+7 |
| | | | | | This is the only argument that changes over the method calls so it is better to it be the first one | ||||
* | Extract common code from number helpers to new delegator method. | Vipul A M | 2013-11-09 | 1 | -30/+13 |
| | |||||
* | Move actionpack/lib/action_view* into actionview/lib | Piotr Sarnacki | 2013-06-20 | 1 | -0/+441 |