gitlab-org--gitlab-foss/app/helpers/count_helper.rb
2018-09-06 17:33:46 -07:00

11 lines
248 B
Ruby

# frozen_string_literal: true
module CountHelper
def approximate_count_with_delimiters(count_data, model)
count = count_data[model]
raise "Missing model #{model} from count data" unless count
number_with_delimiter(count)
end
end