-
- Downloads
Cache todo counters (pending/done)
- As todos are created/updated inside the TodoService we repopulate the cache just there for both pending/done todos - Todos as mark as done from the TodosController we update cache there too - All the added methods are kept in the User class for cohesion
Showing
- CHANGELOG 1 addition, 0 deletionsCHANGELOG
- app/controllers/dashboard/todos_controller.rb 4 additions, 4 deletionsapp/controllers/dashboard/todos_controller.rb
- app/controllers/projects/todos_controller.rb 2 additions, 2 deletionsapp/controllers/projects/todos_controller.rb
- app/helpers/todos_helper.rb 2 additions, 2 deletionsapp/helpers/todos_helper.rb
- app/models/user.rb 17 additions, 0 deletionsapp/models/user.rb
- app/services/todo_service.rb 11 additions, 1 deletionapp/services/todo_service.rb
- spec/services/todo_service_spec.rb 54 additions, 0 deletionsspec/services/todo_service_spec.rb
Please register or sign in to comment