Skip to content
Browse files

Add .page method to will_paginate/arrays by passing options into .pag…

…inate method
  • Loading branch information...
1 parent 71f793e commit dfc5384b7df8a04877ed167b82ec31762c4035c3 @twler committed Jun 28, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/will_paginate/array.rb
View
4 lib/will_paginate/array.rb
@@ -30,4 +30,8 @@ def paginate(options = {})
pager.replace self[pager.offset, pager.per_page].to_a
end
end
+
+ def page(options = {})
+ paginate(options = {})
+ end
end

0 comments on commit dfc5384

Please sign in to comment.
Something went wrong with that request. Please try again.