Module: BootstrapPager::PluckyCriteriaMethods

Includes:
ConfigurationMethods::ClassMethods, PageScopeMethods
Defined in:
lib/bootstrap_pager/models/plucky_criteria_methods.rb

Instance Method Summary collapse

Methods included from ConfigurationMethods::ClassMethods

#default_per_page, #max_pages, #max_pages_per, #max_paginates_per, #max_per_page, #paginates_per

Methods included from PageScopeMethods

#current_page, #first_page?, #last_page?, #next_page, #out_of_range?, #padding, #per, #prev_page, #total_pages

Instance Method Details

#limit_valueObject

:nodoc:


6
7
8
# File 'lib/bootstrap_pager/models/plucky_criteria_methods.rb', line 6

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

#offset_valueObject

:nodoc:


10
11
12
# File 'lib/bootstrap_pager/models/plucky_criteria_methods.rb', line 10

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

#total_countObject

:nodoc:


14
15
16
# File 'lib/bootstrap_pager/models/plucky_criteria_methods.rb', line 14

def total_count #:nodoc:
  count
end