From 4eb13dac19e7565ba1de6ab7614721360a8a8f6c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 7 Jun 2009 16:52:10 +0000 Subject: [PATCH 1/1] Backout pagintion change as the included models are sometimes needed... --- vendor/plugins/classic_pagination/lib/pagination.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor/plugins/classic_pagination/lib/pagination.rb b/vendor/plugins/classic_pagination/lib/pagination.rb index 140a7d79b..6a3e1a97b 100644 --- a/vendor/plugins/classic_pagination/lib/pagination.rb +++ b/vendor/plugins/classic_pagination/lib/pagination.rb @@ -175,6 +175,7 @@ module ActionController def count_collection_for_pagination(model, options) model.count(:conditions => options[:conditions], :joins => options[:join] || options[:joins], + :include => options[:include], :select => (options[:group] ? "DISTINCT #{options[:group]}" : options[:count])) end -- 2.39.5