-
Arturo Herrero authored
count is kind of misleading, it looks like ActiveRecord::Calculations.count https://api.rubyonrails.org/classes/ActiveRecord/Calculations.html#method-i-count but counts is a hash, so it uses Enumerable#count https://ruby-doc.org/core-2.7.1/Enumerable.html#method-i-count. From the Ruby style guide: Don’t use count as a substitute for size. https://github.com/rubocop-hq/ruby-style-guide#count-vs-size
69124de2