Welcome to mirror list, hosted at ThFree Co, Russian Federation.

count_helper.rb « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5cd98f40f78ad59512303025a763c240d4d99620 (plain)
1
2
3
4
5
6
7
8
9
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