Skip to content

Commit be89dff

Browse files
committed
Merge pull request #4 from bruce/will-paginate-hook-fix
Fix typo in will_paginate support
2 parents f8a08e2 + dd707d3 commit be89dff

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)