lib/paginate-responder/adapter/paginate_adapter.rb in paginate-responder-1.2.0 vs lib/paginate-responder/adapter/paginate_adapter.rb in paginate-responder-1.3.0

- old
+ new

@@ -3,10 +3,10 @@ # Pagination adapter for will_paginate. # class PaginateAdapter < Base def suitable? - resource.respond_to?(:paginate) + defined?(:WillPaginate) and resource.respond_to?(:paginate) end def paginate(opts) resource.paginate :page => opts[:page], :per_page => opts[:per_page] end