Module: Kaminari::Helpers::Page

Includes:
Renderable
Included in:
CurrentPage, Link, PageLink
Defined in:
lib/kaminari/helpers/tags.rb

Overview

A page

Instance Method Summary collapse

Methods included from Renderable

included

Instance Method Details

#pageObject

target page number



166
167
168
# File 'lib/kaminari/helpers/tags.rb', line 166

def page
  raise 'Override page with the actual page value to be a Page.'
end

#to_s(locals = {}) ⇒ Object

:nodoc:



169
170
171
# File 'lib/kaminari/helpers/tags.rb', line 169

def to_s(locals = {}) #:nodoc:
  super locals.merge(:page => page)
end