diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-06-01 12:55:00 +0200 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-06-01 12:55:00 +0200 |
commit | 4a50e1f0514f318d10a273d1c252d855cfb106fb (patch) | |
tree | b5ae0597bea9768e5540b49dcbb184bed462e43d /app | |
parent | c0f19cc94ecb606e521afc4a39582c4dae9c5967 (diff) | |
parent | c8eb1dccabe5cd961895127dbbbf46d3eee4aebd (diff) | |
download | gitlab-ce-4a50e1f0514f318d10a273d1c252d855cfb106fb.tar.gz |
Merge branch 'current-settings-use-request-store-during-request'
Diffstat (limited to 'app')
-rw-r--r-- | app/models/application_setting.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/application_setting.rb b/app/models/application_setting.rb index fc48307b75d..42f908aa344 100644 --- a/app/models/application_setting.rb +++ b/app/models/application_setting.rb @@ -102,6 +102,10 @@ class ApplicationSetting < ActiveRecord::Base Rails.cache.delete(CACHE_KEY) end + def self.cached + Rails.cache.fetch(CACHE_KEY) + end + def self.create_from_defaults create( default_projects_limit: Settings.gitlab['default_projects_limit'], |