Sha256: 2dff2721ac5a5af8757b88f6660f24c7c16abd42320402fab183d1eb34b3039b

Contents?: true

Size: 406 Bytes

Versions: 12

Compression:

Stored size: 406 Bytes

Contents

module Kaminari
  module PluckyCriteriaMethods
    include Kaminari::PageScopeMethods

    delegate :default_per_page, :max_per_page, :max_pages, :to => :model

    def entry_name
      model.model_name.human.downcase
    end

    def limit_value #:nodoc:
      options[:limit]
    end

    def offset_value #:nodoc:
      options[:skip]
    end

    def total_count #:nodoc:
      count
    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/plucky_criteria_methods.rb
kaminari-0.17.0 lib/kaminari/models/plucky_criteria_methods.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/kaminari-0.16.3/lib/kaminari/models/plucky_criteria_methods.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/kaminari-0.16.3/lib/kaminari/models/plucky_criteria_methods.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/kaminari-0.16.3/lib/kaminari/models/plucky_criteria_methods.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/kaminari-0.16.3/lib/kaminari/models/plucky_criteria_methods.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/kaminari-0.16.3/lib/kaminari/models/plucky_criteria_methods.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/kaminari-0.16.3/lib/kaminari/models/plucky_criteria_methods.rb
kaminari-0.16.3 lib/kaminari/models/plucky_criteria_methods.rb
kaminari-0.16.2 lib/kaminari/models/plucky_criteria_methods.rb
kaminari-0.16.1 lib/kaminari/models/plucky_criteria_methods.rb
kaminari-0.16.0 lib/kaminari/models/plucky_criteria_methods.rb