Add ability to set custom thumbnail frame time
parent
8d496bd418
commit
c9ccc1b066
@ -0,0 +1,18 @@
|
||||
class AsciicastUpdater
|
||||
|
||||
def update(asciicast, attributes)
|
||||
asciicast.attributes = attributes
|
||||
need_snapshot_update = asciicast.snapshot_at_changed?
|
||||
|
||||
if asciicast.save
|
||||
if need_snapshot_update
|
||||
AsciicastSnapshotUpdater.new.update(asciicast)
|
||||
end
|
||||
|
||||
true
|
||||
else
|
||||
false
|
||||
end
|
||||
end
|
||||
|
||||
end
|
Loading…
Reference in New Issue