Using the #total_pages method of LinkRendererBase also in LinkRenderer #249

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings

Always

Just for now

@@ -59,7 +59,7 @@ def previous_page
end
def next_page
- num = @collection.current_page < @collection.total_pages && @collection.current_page + 1
+ num = @collection.current_page < total_pages && @collection.current_page + 1
previous_or_next_page(num, @options[:next_label], 'next_page')
end