Commit 5a7b94f6 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Ensure that app settings contains runners registration token

parent 30e29bb9
...@@ -78,6 +78,8 @@ class ApplicationSetting < ActiveRecord::Base ...@@ -78,6 +78,8 @@ class ApplicationSetting < ActiveRecord::Base
end end
end end
before_save :ensure_runners_registration_token
after_commit do after_commit do
Rails.cache.write(CACHE_KEY, self) Rails.cache.write(CACHE_KEY, self)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment