Variable name 'i' isn't a good name, it represents the number of the page

This commit is contained in:
Yuki Nishijima 2014-03-30 10:42:24 -07:00
parent 8e1e7267f7
commit 016a97dd5a
1 changed files with 2 additions and 2 deletions

View File

@ -49,8 +49,8 @@ module Kaminari
def each_relevant_page
return to_enum(:each_relevant_page) unless block_given?
relevant_pages(@window_options).each do |i|
yield PageProxy.new(@window_options, i, @last)
relevant_pages(@window_options).each do |page|
yield PageProxy.new(@window_options, page, @last)
end
end
alias each_page each_relevant_page