Add rubocop Cop to detect activerecord .count and .each in haml file
Suggest to change `@AR_relation.count; @AR_relation.each...` to `@AR_relation.load.size; @AR_relation.each...`. This will save one database query
Showing
Please register or sign in to comment