Variable name 'i' isn't a good name, it represents the number of the page
This commit is contained in:
parent
8e1e7267f7
commit
016a97dd5a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue