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
|
def each_relevant_page
|
||||||
return to_enum(:each_relevant_page) unless block_given?
|
return to_enum(:each_relevant_page) unless block_given?
|
||||||
|
|
||||||
relevant_pages(@window_options).each do |i|
|
relevant_pages(@window_options).each do |page|
|
||||||
yield PageProxy.new(@window_options, i, @last)
|
yield PageProxy.new(@window_options, page, @last)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
alias each_page each_relevant_page
|
alias each_page each_relevant_page
|
||||||
|
|
Loading…
Reference in New Issue