Skip to content

Commit dd707d3

Browse files
committed
Fix typo in will_paginate support
1 parent f8a08e2 commit dd707d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api-pagination/hooks.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def self.init
2020
end
2121

2222
begin; require 'will_paginate'; rescue LoadError; end
23-
if defined?(WillPaginate::CollectionMethod)
23+
if defined?(WillPaginate::CollectionMethods)
2424
WillPaginate::CollectionMethods.module_eval do
2525
def first_page?() !previous_page end
2626
def last_page?() !next_page end

0 commit comments

Comments
 (0)