app/policies/rateable.rb
Rateable#average doesn't depend on instance state (maybe move it to another class?) Open
Open
def average(ratings)
- Read upRead up
- Exclude checks
A Utility Function is any instance method that has no dependency on the state of the instance.
Rateable#round_by_point doesn't depend on instance state (maybe move it to another class?) Open
Open
def round_by_point(rating)
- Read upRead up
- Exclude checks
A Utility Function is any instance method that has no dependency on the state of the instance.