diff --git a/models/raid.rb b/models/raid.rb index 545ce10..d5593f7 100644 --- a/models/raid.rb +++ b/models/raid.rb @@ -21,7 +21,7 @@ class Raid < ActiveRecord::Base where('created_at < ?', date).sum(:soldiers) end - def self.contributers(date) + def self.contributors(date) where('created_at < ?', date).group(:attacker).sum(:soldiers) end end