Skip to content

Commit 8628960

Browse files
committed
FIX: ArgumentError: wrong number of arguments (1 for 2)
1 parent 1774bd0 commit 8628960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rails/pagination.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def paginate_with(collection)
1818

1919
private
2020

21-
def _paginate_collection(collection, options)
21+
def _paginate_collection(collection, options={})
2222
options = {
2323
:page => params[:page],
2424
:per_page => (options.delete(:per_page) || params[:per_page])

0 commit comments

Comments
 (0)