Module: Kaminari::ArrayPaginateExtension::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#current_pageObject



6
7
8
# File 'lib/kaminari/models/array_paginate_extension.rb', line 6

def current_page
 params[:page] || 1
end

#limit_valueObject



12
13
14
# File 'lib/kaminari/models/array_paginate_extension.rb', line 12

def limit_value                                                                               
  10
end

#num_pagesObject



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

def num_pages
  count
end