mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-14 13:51:26 +00:00
Remove rcon from log model
This commit is contained in:
parent
c3ac6a60ca
commit
6d0b85524a
1 changed files with 0 additions and 6 deletions
|
@ -21,8 +21,6 @@ class Log < ActiveRecord::Base
|
||||||
attr_accessor :text
|
attr_accessor :text
|
||||||
|
|
||||||
DOMAIN_LOG = 1
|
DOMAIN_LOG = 1
|
||||||
DOMAIN_RCON_COMMAND = 2
|
|
||||||
DOMAIN_RCON_RESPONSE = 3
|
|
||||||
DOMAIN_INFO = 4
|
DOMAIN_INFO = 4
|
||||||
|
|
||||||
TEAM_MARINES = 1
|
TEAM_MARINES = 1
|
||||||
|
@ -52,10 +50,6 @@ class Log < ActiveRecord::Base
|
||||||
belongs_to :actor, :class_name => "Rounder"
|
belongs_to :actor, :class_name => "Rounder"
|
||||||
belongs_to :target, :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
|
def since
|
||||||
(created_at - round.start).to_i
|
(created_at - round.start).to_i
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue