projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add Pipeline#dependencies
[arvados.git]
/
app
/
models
/
log.rb
1
class Log < OrvosModel
2
include AssignUuid
3
include KindAndEtag
4
include CommonApiTemplate
5
serialize :info, Hash
6
before_validation :set_default_event_at
7
8
api_accessible :superuser, :extend => :common do |t|
9
t.add :object_kind
10
t.add :object_uuid
11
t.add :event_at
12
t.add :event_type
13
t.add :summary
14
t.add :info
15
end
16
17
protected
18
19
def set_default_event_at
20
self.event_at ||= Time.now
21
end
22
end