From 3e4cbdd2f26fdde8305dc83469893f4028be209e Mon Sep 17 00:00:00 2001 From: Christopher Blanchard Date: Fri, 22 May 2015 13:56:42 +0100 Subject: [PATCH] Remove unusued method --- app/models/ban.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/models/ban.rb b/app/models/ban.rb index 5a7eaf9..44fa7e1 100644 --- a/app/models/ban.rb +++ b/app/models/ban.rb @@ -87,12 +87,4 @@ class Ban < ActiveRecord::Base def can_destroy? cuser cuser and cuser.admin? end - - def self.refresh - #file = File.new(VENT_BANS, "w") - #Ban.all(:conditions => ["ban_type = ? AND expiry > UTC_TIMESTAMP()", TYPE_VENT]).each do |ban| - # file.write "#{ban.ip},,," - #end - #file.close - end end