lib/pagy/extras/overflow.rb in pagy-5.2.3 vs lib/pagy/extras/overflow.rb in pagy-5.3.0
- old
+ new
@@ -61,10 +61,10 @@
@overflow = true # add the overflow flag
case @vars[:overflow]
when :exception
raise # same as without the extra
when :empty_page
- @offset = @in = @from = @to = 0 # vars relative to the actual page
+ @offset = @items = @from = @to = 0 # vars relative to the actual page
@vars[:size] = [] # no page in the series
self
else
raise VariableError.new(self, :overflow, 'to be in [:empty_page, :exception]', @vars[:overflow])
end