Use ApplicationSetting.current_without_cache instead of ApplicationSetting.current where applicable

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2018-05-16 17:10:04 +02:00
parent e531a0c11c
commit a46929ea2f
No known key found for this signature in database
GPG key ID: 98DFFD1C0C62B70B
4 changed files with 4 additions and 4 deletions

View file

@ -52,7 +52,7 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
private
def set_application_setting
@application_setting = ApplicationSetting.current
@application_setting = ApplicationSetting.current_without_cache
end
def application_setting_params

View file

@ -5,7 +5,7 @@ module API
helpers do
def current_settings
@current_setting ||=
(ApplicationSetting.current || ApplicationSetting.create_from_defaults)
(ApplicationSetting.current_without_cache || ApplicationSetting.create_from_defaults)
end
end

View file

@ -6,7 +6,7 @@ module API
helpers do
def current_settings
@current_setting ||=
(ApplicationSetting.current || ApplicationSetting.create_from_defaults)
(ApplicationSetting.current_without_cache || ApplicationSetting.create_from_defaults)
end
end

View file

@ -23,7 +23,7 @@ module Banzai
private
def settings
ApplicationSetting.current || ApplicationSetting.create_from_defaults
Gitlab::CurrentSettings.current_application_settings
end
def plantuml_setup