vol1ura/Sat_9am_5km

View on GitHub
app/admin/activities.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
89%

Complex method member_action#publish (26.1)
Open

  member_action :publish, method: :put do
    if resource.results.empty?
      flash[:error] = t '.empty_protocol'
    elsif resource.correct?
      resource.update!(published: true)
Severity: Minor
Found in app/admin/activities.rb by flog

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

There are no issues that match your filters.

Category
Status