Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
schedules
Commits
f123e313
Commit
f123e313
authored
May 21, 2019
by
Zac Wood
Browse files
Refactor update stuff
parent
f75fd259
Changes
1
Hide whitespace changes
Inline
Side-by-side
schedules/app/models/update.rb
View file @
f123e313
...
...
@@ -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
rescu
e
els
e
"Data has not yet been loaded."
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment