debian-mirror-gitlab/app/helpers/count_helper.rb

10 lines
217 B
Ruby
Raw Normal View History

2018-10-15 14:42:47 +05:30
module CountHelper
2018-11-08 19:23:39 +05:30
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)
2018-10-15 14:42:47 +05:30
end
end