Skip to content

Commit dcd26c3

Browse files
committed
Merge pull request #11 from hbin/master
FIX: ArgumentError: wrong number of arguments (1 for 2)
2 parents 1774bd0 + 8628960 commit dcd26c3

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)