Commit f123e313 authored by Zac Wood's avatar Zac Wood

Refactor update stuff

parent f75fd259
......@@ -2,9 +2,9 @@ module Update
FILE_NAME = "db/data/last_update.txt".freeze
def self.last_update_date
begin
if File.exist?(FILE_NAME)
File.open(FILE_NAME).first
rescue
else
"Data has not yet been loaded."
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment