From 23b0c53b265166048e5a75f10e9071485a8c6a80 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 28 Apr 2015 10:28:20 -0400 Subject: [PATCH] fix typo --- models/raid.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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