Method: PaginationHelper::Paginator#each

Defined in:
app/helpers/pagination_helper.rb

#each(&block) ⇒ Object

Successively yields all the paginator’s pages to the given block.



323
324
325
326
327
# File 'app/helpers/pagination_helper.rb', line 323

def each(&block)
  page_count.times do |n|
    yield self[n+1]
  end
end