Sha256: 38e3add18675fc7e5a6c8f74d5de43a1525cac3b5bea4b00f98336459eccf915
Contents?: true
Size: 375 Bytes
Versions: 12
Compression:
Stored size: 375 Bytes
Contents
module Kaminari module DataMapperCollectionMethods def entry_name model.model_name.human.downcase end def limit_value #:nodoc: query.options[:limit] || 0 end def offset_value #:nodoc: query.options[:offset] || 0 end def total_count #:nodoc: model.count(query.options.except(:limit, :offset, :order)) end end end
Version data entries
12 entries across 12 versions & 6 rubygems