diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2012-10-10 12:08:20 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2012-10-10 12:08:28 +1100 |
commit | 88f3d5661bafbd921d8f273df0d97d9842d7fb2e (patch) | |
tree | 0f7f9a57b8884dbf3d26acc46b25ee5277615863 | |
parent | 66bbf819536a7a78e08d5d50d44b51196f1dcf01 (diff) |
stat is a class method on File
-rw-r--r-- | app/models/exim_log.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/exim_log.rb b/app/models/exim_log.rb index c81231a30..0be1ff8a3 100644 --- a/app/models/exim_log.rb +++ b/app/models/exim_log.rb @@ -31,7 +31,7 @@ class EximLog < ActiveRecord::Base is_gz = file_name.include?(".gz") file_name_db = is_gz ? file_name.gsub(".gz", "") : file_name - modified = File::stat(file_name).mtime + modified = File.stat(file_name).mtime raise "EximLog.load_file: file not found " + file_name if modified.nil? ActiveRecord::Base.transaction do |