projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master' into 1844-blob-signature
[arvados.git]
/
services
/
api
/
app
/
models
/
log.rb
1
class Log < ArvadosModel
2
include AssignUuid
3
include KindAndEtag
4
include CommonApiTemplate
5
serialize :info, Hash
6
before_validation :set_default_event_at
7
attr_accessor :object
8
9
api_accessible :user, extend: :common do |t|
10
t.add :object_kind
11
t.add :object_uuid
12
t.add :object, :if => :object
13
t.add :event_at
14
t.add :event_type
15
t.add :summary
16
t.add :info
17
end
18
19
protected
20
21
def set_default_event_at
22
self.event_at ||= Time.now
23
end
24
end