Permalink
Browse files

Allow current_page to be overidden

  • Loading branch information...
1 parent f169dcc commit b2cf372dc4927765c39454d6fc8f6e3fd94c638b @heeton committed Jun 9, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/will_paginate/collection.rb
@@ -39,6 +39,7 @@ def initialize(page, page_num)
# # WillPaginate::Collection is now available for use
class Collection < Array
attr_reader :current_page, :per_page, :total_entries, :total_pages
+ attr_writer :current_page
# Arguments to the constructor are the current page number, per-page limit
# and the total number of entries. The last argument is optional because it

0 comments on commit b2cf372

Please sign in to comment.