]> git.openstreetmap.org Git - rails.git/commitdiff
Backout pagintion change as the included models are sometimes needed...
authorTom Hughes <tom@compton.nu>
Sun, 7 Jun 2009 16:52:10 +0000 (16:52 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 7 Jun 2009 16:52:10 +0000 (16:52 +0000)
vendor/plugins/classic_pagination/lib/pagination.rb

index 140a7d79bb9d2310c0650c12420011ef98e65fa8..6a3e1a97b0f661cb63937fc8bbcc6b0b6c533a38 100644 (file)
@@ -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