# File lib/will_paginate/finders/base.rb, line 78 def paginated_each(options = {}, &block) options = { :order => 'id', :page => 1 }.merge options options[:page] = options[:page].to_i options[:total_entries] = 0 # skip the individual count queries total = 0 begin collection = paginate(options) total += collection.each(&block).size options[:page] += 1 end until collection.size < collection.per_page total end