aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/number_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* copy edits [ci skip]Vijay Dev2012-12-041-12/+12
|
* Cleans documentation from Helpers [ci skip]Alvaro Pereyra2012-12-011-114/+88
|
* Hash Syntax to 1.9 related changesAvnerCohen2012-10-291-56/+56
|
* Do not propagate the :raise option to AS number helpersCarlos Antonio da Silva2012-06-241-7/+19
| | | | | ActiveSupport::NumberHelper does not make use of :raise, so there's no need to propagate it down.
* Review requires from number helperCarlos Antonio da Silva2012-05-281-4/+1
| | | | | | | | 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
* Parse float value only once in number helpersCarlos Antonio da Silva2012-05-281-11/+11
| | | | | Refactor number helpers output with safety handling to call float parsing only once. Also remove 'erb' require.
* Moving NumberHelpers from ActionView to ActiveSupportAndrew Mutz2012-05-271-187/+38
|
* reverting decoupling of NumberHelper from safe_join and adding tests for ↵Andrew Mutz2012-05-181-1/+1
| | | | escaping of delimiters and separators
* Remove dependency on safe_join from number helpersCarlos Antonio da Silva2012-05-131-1/+1
| | | | Introduced in 0f848dd54911f0e15c5c3aceabf09582cc6eab16.
* Fix NumberHelper options wrapping to prevent verbatim blocks being rendered ↵Mark J. Titorenko2012-05-081-92/+161
| | | | instead of line continuations. While I'm at it, wrap long comment lines consistently.
* use safe_join in number helperSergey Nartimov2012-04-261-1/+1
|
* fix number_to_human docs [ci skip]Vijay Dev2012-04-261-2/+2
|
* no need in temporary array in number_to_phone helperSergey Nartimov2012-04-091-2/+2
|
* Updated/changed useless tr/gsubsJurriaan Pruis2012-04-031-2/+2
|
* change number_with_precision to not return negative zerosTim McEwan2012-03-271-0/+1
|
* Do not mutate given options hash in number helpersCarlos Antonio da Silva2012-01-251-9/+7
|
* Refactor percentage helperCarlos Antonio da Silva2012-01-251-1/+2
|
* Refactor float number parsingCarlos Antonio da Silva2012-01-251-25/+9
|
* Improve getting translations for number helpersCarlos Antonio da Silva2012-01-251-10/+13
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-01-211-0/+3
|\
| * document `:raise` option support for several helpers [ci skip]Jonathan Roes2012-01-201-0/+3
| |
* | Refactor translations retrievalRafael Mendonça França2012-01-201-18/+15
| |
* | Remove code duplicationRafael Mendonça França2012-01-201-34/+19
| |
* | No need to check html_safe? twiceRafael Mendonça França2012-01-201-2/+1
| |
* | Added format to percentageRodrigo Flores2012-01-201-2/+9
|/
* Merge pull request #4296 from kuroda/negative_formatAaron Patterson2012-01-041-0/+1
|\ | | | | Infer currency negative format from positive one.
| * Infer currency negative format from positive one.Tsutomu Kuroda2012-01-051-0/+1
| | | | | | | | | | | | When a locale file sets the format of the positive currency value as '%n %u', the default negative currency format should be '-%n %u'.
* | copy editsVijay Dev2012-01-041-10/+7
| |
* | improve doc in number helper optionsPablo Ifran2012-01-021-19/+57
|/
* Remove some of the ActiveSupport core extensions related to 1.8.Uģis Ozols2011-12-211-1/+0
|
* put back the removed egVijay Dev2011-11-181-0/+1
|
* Fix a number_with_delimiter :separator exampleEdward Anderson2011-11-171-1/+1
|
* Cosmetic fix in number_to_currency docsAlexey Vakhov2011-11-101-2/+2
|
* remove user-specified delimiter from start when no area code is present (in ↵Mac Martine2011-10-121-1/+1
| | | | number_to_phone)
* checked all .rb files in the project tree for missing magic comments, one ↵Xavier Noria2011-07-231-0/+2
| | | | | | | | | | | | | | was missing Came with this one-liner for this: find . -name '*.rb' | \ xargs chardet | \ grep -v ascii | \ cut -d: -f1 -s | \ xargs -n1 ruby -0777 -ne 'puts $FILENAME if $_ !~ /#.*coding:\s*utf/i' Welcome $_.
* Ensure number helpers can handle HTML safe strings - closes #1597.Andrew White2011-06-101-1/+1
|
* Remove trailing white-spacesGuillermo Iguaran2011-06-051-1/+1
|
* added a :prefix option to number_to_human_sizeDiego Carrion2011-04-271-3/+6
|
* Making spacing consistentMatt Duncan2011-04-151-2/+2
|
* Fixing missing colon on symbol in exampleMatt Duncan2011-04-151-1/+1
|
* Negative format example should use a negative numberMatt Duncan2011-04-151-1/+1
|
* fixes an issue with number_to_human when converting values which are less ↵Josh Kalderimis2011-03-161-1/+1
| | | | | | than 1 but greater than -1 [#6576 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Action Pack typos.R.T. Lechow2011-03-051-3/+3
|
* Fixed number_with_precision rounding error [#6182 state:resolved]Don Wilson2010-12-181-2/+3
|
* Revert "Fixed number_with_precision rounding error [#6182 state:resolved]"Piotr Sarnacki2010-12-171-3/+2
| | | | This reverts commit 006ec77e60163d57d655479602230672d98e0f10.
* Fixed number_with_precision rounding error [#6182 state:resolved]Don Wilson2010-12-171-2/+3
|
* made a pass to the docs of :negative_formatXavier Noria2010-11-031-5/+7
|
* Added :negative_format option to number_to_currency function [#5894 ↵Don Wilson2010-11-021-7/+16
| | | | | | state:resolved] Signed-off-by: Andrew White <andyw@pixeltrix.co.uk>
* lets not invert the hash on every iteration through this loopAaron Patterson2010-10-181-1/+3
|
* use -= in place of the expanded formAaron Patterson2010-10-181-1/+1
|