Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove debug code :bomb:

  • Loading branch information...
commit 4434e3f72b14cc9fdbd3bd5afa0784406c1c305b 1 parent 9ae79af
@rafaelfranca rafaelfranca authored
View
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
Please sign in to comment.
Something went wrong with that request. Please try again.