amatsuda/kaminari — comment on commit 0a36c1793b16dad403186650dfa83c7b8fc06c3d
File: lib/kaminari/models/active_record_relation_methods.rb line 23
By Empact:

You don't strictly need to assign @total_count here, as it's assigned on line 15 with the result of this line. But of course it's fine to keep it if you think it improves readability.