method
number_to_human_size
number_to_human_size(number, options = {})
public
Delegates to ActiveSupport::NumberHelper#number_to_human_size.
Additionally, supports a :raise option that will cause InvalidNumberError to be raised if number is not a valid number:
number_to_human_size("12x34") # => "12x34" number_to_human_size("12x34", raise: true) # => InvalidNumberError