summaryrefslogtreecommitdiff
path: root/app/helpers/application_settings_helper.rb
diff options
context:
space:
mode:
authorMartin Wortschack <mwortschack@gitlab.com>2018-09-19 12:57:57 +0200
committerMartin Wortschack <mwortschack@gitlab.com>2018-09-19 12:57:57 +0200
commit26225e778d7e5beb9861756890bf2fddb19af77b (patch)
tree7717e2637c358627d6bc504b7db75b3d1205ece7 /app/helpers/application_settings_helper.rb
parentdf9cb93091838b6c4661c974436ce9120d9b1983 (diff)
downloadgitlab-ce-26225e778d7e5beb9861756890bf2fddb19af77b.tar.gz
Utilize expanded_by_default
Diffstat (limited to 'app/helpers/application_settings_helper.rb')
-rw-r--r--app/helpers/application_settings_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/application_settings_helper.rb b/app/helpers/application_settings_helper.rb
index 3ebf0162cb6..dc393968786 100644
--- a/app/helpers/application_settings_helper.rb
+++ b/app/helpers/application_settings_helper.rb
@@ -264,4 +264,8 @@ module ApplicationSettingsHelper
:web_ide_clientside_preview_enabled
]
end
+
+ def expanded_by_default?
+ Rails.env.test?
+ end
end