Sha256: dba8f3b928a7d23765d48770b17a5f9113869da489dd75d624023b590d5d8973
Contents?: true
Size: 429 Bytes
Versions: 1
Compression:
Stored size: 429 Bytes
Contents
module Kaminari module DataMapper 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kaminari-data_mapper-0.1.0 | lib/kaminari/data_mapper/data_mapper_collection_methods.rb |