# File lib/will_paginate/finders/base.rb, line 58 def paginate(*args, &block) options = args.pop page, per_page, total_entries = wp_parse_options(options) WillPaginate::Collection.create(page, per_page, total_entries) do |pager| query_options = options.except :page, :per_page, :total_entries wp_query(query_options, pager, args, &block) end end