This method used to ignore the block but in Rails 5.1 it uses Enumerable#count. See https://github.com/rails/rails/pull/24203/commits/58772397
This method used to ignore the block but in Rails 5.1 it uses Enumerable#count. See https://github.com/rails/rails/pull/24203/commits/58772397