Permalink
Browse files

Remove debug code 💣

  • Loading branch information...
1 parent 9ae79af commit 4434e3f72b14cc9fdbd3bd5afa0784406c1c305b @rafaelfranca rafaelfranca committed Sep 17, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 activerecord/lib/active_record/associations/collection_association.rb
@@ -373,7 +373,6 @@ def custom_counter_sql
# replace the SELECT clause with COUNT(SELECTS), preserving any hints within /* ... */
interpolate(options[:finder_sql]).sub(/SELECT\b(\/\*.*?\*\/ )?(.*)\bFROM\b/im) do
count_with = $2.to_s
- p count_with
count_with = '*' if count_with.blank? || count_with =~ /,/ || count_with =~ /\.\*/
"SELECT #{$1}COUNT(#{count_with}) FROM"
end

0 comments on commit 4434e3f

Please sign in to comment.