diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-09-16 23:32:23 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-09-16 23:32:23 -0300 |
commit | 4434e3f72b14cc9fdbd3bd5afa0784406c1c305b (patch) | |
tree | 9ccd88b07e0c55a7ff29a66d4e3d634880300b67 /activerecord/lib/active_record/associations | |
parent | 9ae79af0421977f5b3ecbc70fc93e98d4278b8f0 (diff) | |
download | rails-4434e3f72b14cc9fdbd3bd5afa0784406c1c305b.tar.gz rails-4434e3f72b14cc9fdbd3bd5afa0784406c1c305b.tar.bz2 rails-4434e3f72b14cc9fdbd3bd5afa0784406c1c305b.zip |
Remove debug code :bomb:
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r-- | activerecord/lib/active_record/associations/collection_association.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/collection_association.rb b/activerecord/lib/active_record/associations/collection_association.rb index babbb12e99..424c1a5b79 100644 --- a/activerecord/lib/active_record/associations/collection_association.rb +++ b/activerecord/lib/active_record/associations/collection_association.rb @@ -373,7 +373,6 @@ module ActiveRecord # 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 |