summaryrefslogtreecommitdiff
path: root/app/helpers/count_helper.rb
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