diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2013-07-02 21:56:51 +0530 |
---|---|---|
committer | Neeraj Singh <neerajdotname@gmail.com> | 2013-07-02 22:08:42 +0530 |
commit | d80334488ff5c83e63cca3fb70250e9002a2f0c3 (patch) | |
tree | d9a1c43f290b9ba7c35c38fe2c6fc6b36b4c42d2 /activerecord/lib/active_record/associations/has_many_association.rb | |
parent | f875d319ad32d63ce2d3e8a343b059858f28dd97 (diff) | |
download | rails-d80334488ff5c83e63cca3fb70250e9002a2f0c3.tar.gz rails-d80334488ff5c83e63cca3fb70250e9002a2f0c3.tar.bz2 rails-d80334488ff5c83e63cca3fb70250e9002a2f0c3.zip |
Removed support for deprecated `finder_sql` in associations.
Diffstat (limited to 'activerecord/lib/active_record/associations/has_many_association.rb')
-rw-r--r-- | activerecord/lib/active_record/associations/has_many_association.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations/has_many_association.rb b/activerecord/lib/active_record/associations/has_many_association.rb index b632b0dfed..36d81a7402 100644 --- a/activerecord/lib/active_record/associations/has_many_association.rb +++ b/activerecord/lib/active_record/associations/has_many_association.rb @@ -58,8 +58,6 @@ module ActiveRecord def count_records count = if has_cached_counter? owner.send(:read_attribute, cached_counter_attribute_name) - elsif options[:finder_sql] - reflection.klass.count_by_sql(custom_counter_sql) else scope.count end |