Backout pagintion change as the included models are sometimes needed...
This commit is contained in:
parent
9cd29b4721
commit
4eb13dac19
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue