fosterful/scheduler

View on GitHub
app/controllers/shifts_controller.rb

Summary

Maintainability
A
35 mins
Test Coverage
A
100%

Showing 1 of 1 total issue

Method update has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

def update
@need = policy_scope(Need).find(params[:need_id])
@shift = policy_scope(Shift).find(params[:id])
 
authorize @shift
Severity: Minor
Found in app/controllers/shifts_controller.rb - About 35 mins to fix
Category
Status