aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb
diff options
context:
space:
mode:
authorAkshay Vishnoi <akshay.vishnoi@vinsol.com>2015-12-22 23:05:50 +0530
committerAkshay Vishnoi <akshay.vishnoi@vinsol.com>2015-12-22 23:07:06 +0530
commit3d1f95d0e8ca70f5d892d9b2ed78e99ff7cb3bde (patch)
tree063fa8ff94f7cec601b58c8b4a52e6657c95c3f6 /activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb
parent47fd7c95555cb1c6e05768cd1b9ee38ad5cf9d1f (diff)
downloadrails-3d1f95d0e8ca70f5d892d9b2ed78e99ff7cb3bde.tar.gz
rails-3d1f95d0e8ca70f5d892d9b2ed78e99ff7cb3bde.tar.bz2
rails-3d1f95d0e8ca70f5d892d9b2ed78e99ff7cb3bde.zip
Add support for Petabyte and Exabyte in number to human size
Diffstat (limited to 'activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb')
-rw-r--r--activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb b/activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb
index a4a8690bcd..a83b368b7f 100644
--- a/activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb
+++ b/activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb
@@ -1,7 +1,7 @@
module ActiveSupport
module NumberHelper
class NumberToHumanSizeConverter < NumberConverter #:nodoc:
- STORAGE_UNITS = [:byte, :kb, :mb, :gb, :tb]
+ STORAGE_UNITS = [:byte, :kb, :mb, :gb, :tb, :pb, :eb]
self.namespace = :human
self.validate_float = true