BenMusch/nu-tab

View on GitHub
app/controllers/scratches_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage

Showing 2 of 3 total issues

Assignment Branch Condition size for index is too high. [16.61/15]
Wontfix

def index
if params[:judge_id]
@entity = Judge.find(params[:judge_id])
@scratches = Scratch.where(judge_id: params[:judge_id])
elsif params[:team_id]

Add an empty line after magic comments.
Open

class ScratchesController < ApplicationController

Use %i or %I for an array of symbols.
Open

before_action :set_scratch, only: [:show, :destroy]
Category
Status