Fix JS errors and add back commit hash

This commit is contained in:
Ondřej Hruška
2017-07-25 21:54:12 +02:00
parent 7e5691804d
commit b7cf758fbe
4 changed files with 14 additions and 7 deletions

View File

@@ -35,9 +35,9 @@ class InstancePresenter
def commit_hash
current_release_file = Pathname.new('CURRENT_RELEASE').expand_path
if current_release_file.file?
IO.read(current_release_file)
IO.read(current_release_file).strip!
else
""
''
end
end
end