Method deprecated
This method is deprecated on the latest stable version of Rails.
The last existing version (v1.2.6) is shown here.
count_collection_for_pagination(model, options)
protected
Returns the total number of items in the collection to be paginated for the
model and given conditions. Override this method to
implement a custom counter.
Show source
def count_collection_for_pagination(model, options)
model.count(:conditions => options[:conditions],
:joins => options[:join] || options[:joins],
:include => options[:include],
:select => options[:count])
end