Open orenyk opened 9 years ago
@esoterik - how does this fit in with #1501? Have these all largely been taken care of?
Just saw this!
EquipmentModel#number_overdue
has been replaced by a counter cacheNice, so this is just a matter of improving the decorators then? Sounds good!
We should be using the class methods for EquipmentModel and Reservation to avoid DB calls if possible (and avoid code duplication). Things to try and get rid of:
EquipmentModel#available_count
EquipmentModel#number_overdue
ActiveRecord
query inequipment_model_decorator.rb