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
|