app/controllers/teams_controller.rb
Complex method TeamsController#create (36.5) Open
Open
def create
@team = Team.new(allowed_params)
authorize @team
return unless check_recaptcha
- Read upRead up
- Exclude checks
Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.
You can read more about ABC metrics or the flog tool
Complex method TeamsController#update (33.2) Open
Open
def update
@team = current_team
authorize @team
result = TeamOperations::Update.call(
- Read upRead up
- Exclude checks
Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.
You can read more about ABC metrics or the flog tool