Module: Material::Pagination

Extended by:
ActiveSupport::Concern
Included in:
List
Defined in:
lib/material/concerns/pagination.rb

Instance Method Summary collapse

Instance Method Details

#initialize(*arguments, current_page: 1, total_pages: 1) ⇒ Object



11
12
13
14
15
# File 'lib/material/concerns/pagination.rb', line 11

def initialize(*arguments, current_page: 1, total_pages: 1)
  super(*arguments)
  @current_page = current_page
  @total_pages = total_pages
end