From f21da55cd26a3579846fd8b6f56e464afd3f56cf Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Wed, 10 Oct 2012 11:36:57 +1100 Subject: Creating EximLog record autosaves EximLogDone record anyway --- app/models/exim_log.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/models/exim_log.rb b/app/models/exim_log.rb index 316f6771c..94b28ca65 100644 --- a/app/models/exim_log.rb +++ b/app/models/exim_log.rb @@ -53,6 +53,8 @@ class EximLog < ActiveRecord::Base done.filename = file_name_db end done.last_stat = modified + # update done structure so we know when we last read this file + done.save! # scan the file if is_gz @@ -74,9 +76,6 @@ class EximLog < ActiveRecord::Base end end end - - # update done structure so we know when we last read this file - done.save! end end -- cgit v1.2.3