Permalink
Browse files

have LinkRenderer use `total_pages` from LinkRendererBase

  • Loading branch information...
1 parent 9fc0690 commit 25582e5d6fd3962a61805e3d596942762a2437e4 @l-schirrmeister l-schirrmeister committed with Jul 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/will_paginate/view_helpers/link_renderer.rb
@@ -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

0 comments on commit 25582e5

Please sign in to comment.