Class: Kaminari::Helpers::PrevPage

Inherits:
Tag
  • Object
show all
Includes:
Link
Defined in:
lib/kaminari/helpers/tags.rb

Overview

The “previous” page of the current page

Instance Method Summary collapse

Methods included from Link

#to_s, #url

Methods inherited from Tag

#initialize, #page_url_for, #partial_path, #to_s

Constructor Details

This class inherits a constructor from Kaminari::Helpers::Tag

Instance Method Details

#pageObject

:nodoc:



88
89
90
# File 'lib/kaminari/helpers/tags.rb', line 88

def page #:nodoc:
  @options[:current_page] - 1
end