app/controllers/clubs_controller.rb
Complex method ClubsController#show (25.7) Open
Open
def show
@club = Club.find(params[:id])
@count_results =
Athlete
.left_joins(results: :activity)
- 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 ClubsController#search (24.7) Open
Open
def search
@clubs =
Club
.joins(:country)
.where(country: { code: top_level_domain })
- 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 ClubsController#index (22.6) Open
Open
def index
@clubs = Athlete
.joins(club: :country)
.where(country: { code: top_level_domain })
.group(:club)
- 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