1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00
kaminari--kaminari/lib/kaminari/models/plucky_criteria_methods.rb
Akira Matsuda 389e769b32 Revert "Drop support for MongoMapper."
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.
2016-04-14 09:32:55 +09:00

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