app/models/enrollment.rb
Enrollment#counters_inc doesn't depend on instance state (maybe move it to another class?) Open
Open
def counters_inc(user, event, inc)
- Read upRead up
- Exclude checks
A Utility Function is any instance method that has no dependency on the state of the instance.