app/helpers/application_helper.rb
# This should be refactored...
# rubocop:disable Metrics/MethodLength
This should be refactored
rubocop:disable Metrics/MethodLength
This should be refactored rubocop : disable Metrics / MethodLength
def pretty_metric_value(value)
    case value
    when Float, BigDecimal
      "#{number_with_delimiter(value.floor)}%"
    when Integer
      number_with_delimiter value
    when Date, Time
      l value.to_date
    when Array
      value.to_sentence
    else
      value
    end
  end
def pretty_metric_value ( value ) case value when Float , BigDecimal "#{number_with_delimiter(value.floor)}%" when Integer number_with_delimiter value when Date , Time l value . to_date when Array value . to_sentence else value end end
This should be refactored...
rubocop:disable Metrics/MethodLength
This should be refactored ... rubocop : disable Metrics / MethodLength
value