Ensure that app settings contains runners registration token
This commit is contained in:
parent
30e29bb924
commit
5a7b94f6d1
|
@ -78,6 +78,8 @@ class ApplicationSetting < ActiveRecord::Base
|
|||
end
|
||||
end
|
||||
|
||||
before_save :ensure_runners_registration_token
|
||||
|
||||
after_commit do
|
||||
Rails.cache.write(CACHE_KEY, self)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue