diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2012-10-10 11:36:57 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2012-10-10 11:36:57 +1100 |
commit | f21da55cd26a3579846fd8b6f56e464afd3f56cf (patch) | |
tree | e926defd275a48bbb91f884a25e2a888fab055ed | |
parent | 131fe6497f319e42ff83f9b3f830c532f46f6c02 (diff) |
Creating EximLog record autosaves EximLogDone record anyway
-rw-r--r-- | app/models/exim_log.rb | 5 |
1 files 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 |