From 8d85ef6256781c7c76723ef4d98d8865a71dd930 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 28 Apr 2015 10:54:17 -0400 Subject: [PATCH] revert cleanup --- app.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app.rb b/app.rb index 4edfff0..7220fa5 100644 --- a/app.rb +++ b/app.rb @@ -14,9 +14,6 @@ get '/' do leaders = Leader.all.includes(:last_attack, :last_defense) @top20 = leaders.reject { |l| l.last_action } + leaders.select { |l| l.last_action }.sort_by { |l| l.last_action } - # temp cleanup - Raid.where('attacker = ? AND defender = ?', 'atomaka', 'mafiaman').destroy_all - erb :index end