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

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/kaminari-0.17.0/lib/kaminari/models/data_mapper_collection_methods.rb
kaminari-0.17.0 lib/kaminari/models/data_mapper_collection_methods.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/kaminari-0.16.3/lib/kaminari/models/data_mapper_collection_methods.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/kaminari-0.16.3/lib/kaminari/models/data_mapper_collection_methods.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/kaminari-0.16.3/lib/kaminari/models/data_mapper_collection_methods.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/kaminari-0.16.3/lib/kaminari/models/data_mapper_collection_methods.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/kaminari-0.16.3/lib/kaminari/models/data_mapper_collection_methods.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/kaminari-0.16.3/lib/kaminari/models/data_mapper_collection_methods.rb
kaminari-0.16.3 lib/kaminari/models/data_mapper_collection_methods.rb
kaminari-0.16.2 lib/kaminari/models/data_mapper_collection_methods.rb
kaminari-0.16.1 lib/kaminari/models/data_mapper_collection_methods.rb
kaminari-0.16.0 lib/kaminari/models/data_mapper_collection_methods.rb