mislav committed changeset [406]
Revision 406,
committed by Chris Wanstrath
· October 13th, 2007 @ 04:50 PM
Will Paginate: add WillPaginate::Deprecation that builds on ActiveSupport::Deprecation. Change Array#paginate API to match ActiveRecord::Base#paginate; so you will no longer write array.paginate(1, 20), but array.paginate(:page => 1, :per_page => 20). Mark the old API as deprecated; it will be removed in the future. [ckknight] [#128 status:resolved]
4 changed files
-
U
will_paginate/lib/will_paginate/core_ext.rb -
U
will_paginate/lib/will_paginate.rb -
U
will_paginate/test/array_pagination_test.rb -
U
will_paginate/test/pagination_test.rb