module Wor::Paginate::Adapters::Helpers::TotalCount

Public Instance Methods

total_count() click to toggle source
# File lib/wor/paginate/adapters/helpers/total_count.rb, line 6
def total_count
  @content_size ||= @content.reorder(nil).size
  return @content_size.keys.size if @content_size.is_a? Hash

  @content_size
end