From 1d16d3d4b57926caf1e846e7f29f96382fe341bd Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 10 Jun 2016 13:05:22 +0200 Subject: [PATCH] Updated doc. --- lib/app_version.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/app_version.rb b/lib/app_version.rb index 909b5c8d2..1c35e87c6 100644 --- a/lib/app_version.rb +++ b/lib/app_version.rb @@ -26,11 +26,14 @@ set new app version and if browser reload is required send also reload type to clients + AppVersion.set(true, 'app_version') + AppVersion.set(true, 'restart_manual') AppVersion.set(true, 'restart_auto') + AppVersion.set(true, 'config_changed') =end - def self.set(reload_required = false, type = false) + def self.set(reload_required = false, type = 'app_version') return false if !Setting.find_by(name: 'app_version') version = "#{Time.zone.now.strftime('%Y%m%d%H%M%S')}:#{reload_required}" Setting.set('app_version', version)