# File lib/will_paginate/finders/data_mapper.rb, line 10 def wp_query(options, pager, args, &block) #:nodoc find_options = options.except(:count).update(:offset => pager.offset, :limit => pager.per_page) pager.replace all(find_options, &block) unless pager.total_entries pager.total_entries = wp_count(options) end end