1
0
Fork 0
This commit is contained in:
Andrew Tomaka 2015-04-28 10:28:20 -04:00
parent c78ff9039a
commit 23b0c53b26
1 changed files with 1 additions and 1 deletions

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