mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 21:10:54 +00:00
Remove unusued method
This commit is contained in:
parent
087cef15f2
commit
3e4cbdd2f2
1 changed files with 0 additions and 8 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue