Revert r11194 as it doesn't work as the trace_name member does return
the correct result until after the trace is saved.
This commit is contained in:
parent
b105304a1b
commit
fb997c0a76
1 changed files with 4 additions and 3 deletions
|
@ -306,9 +306,10 @@ private
|
||||||
@trace.user = @user
|
@trace.user = @user
|
||||||
@trace.timestamp = Time.now
|
@trace.timestamp = Time.now
|
||||||
|
|
||||||
|
if @trace.save
|
||||||
FileUtils.mv(filename, @trace.trace_name)
|
FileUtils.mv(filename, @trace.trace_name)
|
||||||
unless @trace.save
|
else
|
||||||
FileUtils.rm_f(@trace.trace_name)
|
FileUtils.rm_f(filename)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue