mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00

This reverts commit 48fc4bd0f1
.
We decided not to immediately drop these adapters support.
We'll deprecate them in 0.17.0, then remove them from core in 1.0.
23 lines
406 B
Ruby
23 lines
406 B
Ruby
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
|