app/admin/results.rb
Complex method index(download_links)::column#athlete (21.4) Open
Open
column :athlete do |r|
if r.athlete
external_link_to r.athlete.name.presence || t('common.without_name'), admin_athlete_path(r.athlete)
else
external_link_to t('common.without_token'), new_admin_athlete_path(result_id: r.id)
- 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 member_action#insert_above (21.3) Open
Open
member_action :insert_above, method: :post, if: proc { can? :manage, Result } do
resource.insert_new_result_above!
redirect_to collection_path, notice: t('active_admin.results.result_successfully_appended', position: resource.position)
rescue StandardError => e
Rollbar.error e
- 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