Tag
The main container tag
enumerate each page providing PageProxy object as the block parameter Because of performance reason, this doesn’t actually enumerate all pages but pages that are seemingly relevant to the paginator. “Relevant” pages are:
pages inside the left outer window plus one for showing the gap tag
pages inside the inner window plus one on the left plus one on the right for showing the gap tags
pages inside the right outer window plus one for showing the gap tag
# File lib/kaminari/helpers/paginator.rb, line 50 def each_relevant_page return to_enum(:each_relevant_page) unless block_given? relevant_pages(@window_options).each do |page| yield PageProxy.new(@window_options, page, @last) end end
Generated with the Darkfish Rdoc Generator 2.