app/policies/stats/round/iron_person_policy.rb
# frozen_string_literal: trueAdd an empty line after magic comments.module Stats module Round class IronPersonPolicy < StandardPolicy def speaks stats.pluck(:speaks).reduce(:+) / 2.0 end def ranks stats.pluck(:ranks).reduce(:+) / 2.0 end private def stats @stats ||= debater.debater_round_stats.where(round: round) end end endend