Ensure that app settings contains runners registration token

This commit is contained in:
Grzegorz Bizon 2015-12-10 13:05:59 +01:00
parent 30e29bb924
commit 5a7b94f6d1
1 changed files with 2 additions and 0 deletions

View File

@ -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