diff options
author | Andrew White <andrew.white@unboxed.co> | 2016-11-13 23:08:13 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2016-11-13 23:09:03 +0000 |
commit | dadba9ae5711c36e0491dffbd8fd03b96db45c19 (patch) | |
tree | 824395311681c243fd48ecf9b5c93aa21fb7ddc3 /activesupport/lib | |
parent | 2ff2b98032409d162cd2a0ffc1b21c63057f628d (diff) | |
download | rails-dadba9ae5711c36e0491dffbd8fd03b96db45c19.tar.gz rails-dadba9ae5711c36e0491dffbd8fd03b96db45c19.tar.bz2 rails-dadba9ae5711c36e0491dffbd8fd03b96db45c19.zip |
Remove deprecated :prefix option
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb | 6 |
1 files changed, 1 insertions, 5 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 02b4231794..f263dbe9f8 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 @@ -7,10 +7,6 @@ module ActiveSupport self.validate_float = true def convert - if opts.key?(:prefix) - ActiveSupport::Deprecation.warn("The :prefix option of `number_to_human_size` is deprecated and will be removed in Rails 5.1 with no replacement.") - end - @number = Float(number) # for backwards compatibility with those that didn't add strip_insignificant_zeros to their locale files @@ -54,7 +50,7 @@ module ActiveSupport end def base - opts[:prefix] == :si ? 1000 : 1024 + 1024 end end end |