Remove unusued method

This commit is contained in:
Christopher Blanchard 2015-05-22 13:56:42 +01:00
parent 829c96709b
commit 85f4baab3c

View file

@ -87,12 +87,4 @@ class Ban < ActiveRecord::Base
def can_destroy? cuser def can_destroy? cuser
cuser and cuser.admin? cuser and cuser.admin?
end 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 end