aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorGonçalo Silva <goncalossilva@gmail.com>2011-03-29 23:43:26 +0100
committerGonçalo Silva <goncalossilva@gmail.com>2011-03-29 23:43:26 +0100
commita35ba6cf5a91b0cde0a22007f8532313754d0cac (patch)
tree03982f84515e845ca59a6567215a99e1d9dfe211 /activesupport/lib/active_support
parentbe0a2b8f01732bacaa652eff6f286112ace2adca (diff)
downloadrails-a35ba6cf5a91b0cde0a22007f8532313754d0cac.tar.gz
rails-a35ba6cf5a91b0cde0a22007f8532313754d0cac.tar.bz2
rails-a35ba6cf5a91b0cde0a22007f8532313754d0cac.zip
don't allow decimal places on the amount of objects and gc runs
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/testing/performance.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/testing/performance.rb b/activesupport/lib/active_support/testing/performance.rb
index f6945e8466..71d49459ef 100644
--- a/activesupport/lib/active_support/testing/performance.rb
+++ b/activesupport/lib/active_support/testing/performance.rb
@@ -231,7 +231,7 @@ module ActiveSupport
class Amount < Base
def format(measurement)
- number_with_delimiter(measurement)
+ number_with_delimiter(measurement.floor)
end
end