Remove rcon from log model

This commit is contained in:
cblanc 2015-05-18 17:24:18 +01:00
parent 160e0ef44f
commit 032b21874a

View file

@ -21,8 +21,6 @@ class Log < ActiveRecord::Base
attr_accessor :text
DOMAIN_LOG = 1
DOMAIN_RCON_COMMAND = 2
DOMAIN_RCON_RESPONSE = 3
DOMAIN_INFO = 4
TEAM_MARINES = 1
@ -52,10 +50,6 @@ class Log < ActiveRecord::Base
belongs_to :actor, :class_name => "Rounder"
belongs_to :target, :class_name => "Rounder"
# def domains
# return {DOMAIN_LOG => "HL Log", DOMAIN_RCON_COMMAND => "Rcon Command Log", DOMAIN_RCON_RESPONSE => "Rcon Response Log", DOMAIN_INFO => "Action Log"}
# end
def since
(created_at - round.start).to_i
end