]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/plugins/classic_pagination/lib/pagination.rb
Don't bother with the includes when doing the count - they aren't needed
[rails.git] / vendor / plugins / classic_pagination / lib / pagination.rb
index 6a3e1a97b0f661cb63937fc8bbcc6b0b6c533a38..140a7d79bb9d2310c0650c12420011ef98e65fa8 100644 (file)
@@ -175,7 +175,6 @@ 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