mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
18 lines
314 B
Ruby
18 lines
314 B
Ruby
module Kaminari
|
|
module MongoidCriteriaMethods
|
|
extend ActiveSupport::Concern
|
|
module InstanceMethods
|
|
def limit_value #:nodoc:
|
|
options[:limit]
|
|
end
|
|
|
|
def offset_value #:nodoc:
|
|
options[:skip]
|
|
end
|
|
|
|
def total_count #:nodoc:
|
|
count
|
|
end
|
|
end
|
|
end
|
|
end
|