Class: Blog::PaginationHelper::LinkRenderer

Inherits:
WILL_PAGINATE_BASE
  • Object
show all
Defined in:
app/helpers/blog/pagination_helper.rb

Constant Summary collapse

PAGE_PARAMETER =
/\/page\/\d+$/

Instance Method Summary collapse

Instance Method Details

#paginationObject



7
8
9
10
11
12
# File 'app/helpers/blog/pagination_helper.rb', line 7

def pagination
  items = @options[:page_links] ? windowed_page_numbers : []
  items.unshift :previous_page unless @options[:previous_link] == false
  items.push :next_page unless @options[:next_link] == false
  items
end