rails/rails — pull request #15266 by dv (2014-05-23 10:47:58+00:00)
Title: If a counter_cache exists, use it for #empty?

When a counter_cache is available, also use it when checking if the collection is empty or not, removing a (redundant) query for both `#empty?` and `#any?`.