app/controllers/shifts_controller.rb
Showing 1 of 1 total issue
Method update
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def update @need = policy_scope(Need).find(params[:need_id]) @shift = policy_scope(Shift).find(params[:id]) authorize @shift
- Read upRead up