aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/float/rounding.rb
Commit message (Collapse)AuthorAgeFilesLines
* move the conditional definition of Float#round downXavier Noria2011-03-091-1/+1
| | | | | | | Rails 3 cherry-picks as little as possible from Active Support. In particular the framework requires the files where extensions are exactly defined, rather than convenience entry points like float.rb and friends. Because of that, it is better to define conditionally rather than require conditionally.
* Remove unneeded reliance on Numeric#round quirkJeremy Kemper2010-01-061-2/+3
|
* * Introduce ActiveSupport.core_ext Integer, %w(conversions time etc)Jeremy Kemper2009-03-211-20/+14
| | | | | | * Convert some extension modules to simply reopening the class * Remove deprecated Float time extensions * Fold Base64 extension into ActiveSupport::Base64 since stdlib Base64 is gone
* Some 1.9 forward compatibilityJeremy Kemper2007-09-141-2/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow Float#round to take a precision argument. Closes #8626 [norbert]Michael Koziarski2007-09-021-0/+22
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7401 5ecf4fe2-1ee6-0310-87b1-e25e094e27de