Skip to content

Commit

Permalink
Commented out the use of select in wp_count.
Browse files Browse the repository at this point in the history
  • Loading branch information
swan-t committed Dec 16, 2010
1 parent 6e862cc commit 5457ed7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/will_paginate/finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,12 @@ def wp_count(options, args, finder)
klass = (@owner and @reflection) ? @reflection.klass : self

# Use :select from scope if it isn't already present.
options[:select] = scope(:find, :select) unless options[:select]

##
# Commented out for use with rails 3. This means we can't use :select for now
##

# options[:select] = scope(:find, :select) unless options[:select]

if options[:select] and options[:select] =~ /^\s*DISTINCT\b/i
# Remove quoting and check for table_name.*-like statement.
Expand Down

0 comments on commit 5457ed7

Please sign in to comment.