debian-mirror-gitlab/app/helpers/count_helper.rb
2018-11-08 19:23:39 +05:30

9 lines
217 B
Ruby

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