Module: Kaminari::MongoidCriteriaMethods::InstanceMethods

Defined in:
lib/kaminari/models/mongoid_criteria_methods.rb

Instance Method Summary collapse

Instance Method Details

#limit_valueObject

:nodoc:



5
6
7
# File 'lib/kaminari/models/mongoid_criteria_methods.rb', line 5

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

#offset_valueObject

:nodoc:



9
10
11
# File 'lib/kaminari/models/mongoid_criteria_methods.rb', line 9

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

#total_countObject

:nodoc:



13
14
15
# File 'lib/kaminari/models/mongoid_criteria_methods.rb', line 13

def total_count #:nodoc:
  count
end