This commit is contained in:
Andrew Tomaka 2015-04-28 10:28:20 -04:00
parent c78ff9039a
commit 23b0c53b26

View file

@ -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