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
f8b37fcb
Commit
f8b37fcb
authored
Jan 17, 2020
by
Zac Wood
Browse files
change update to use proper path
parent
23d46cc9
Pipeline
#5334
passed with stage
in 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
schedules/app/models/update.rb
View file @
f8b37fcb
require
'time'
module
Update
FILE_NAME
=
"db/data/
last_update.txt"
.
freeze
FILE_NAME
=
Rails
.
root
.
join
(
"db"
,
"data"
,
"
last_update.txt"
)
.
freeze
def
self
.
last_update_date
if
File
.
exist?
(
FILE_NAME
)
...
...
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