summaryrefslogtreecommitdiff
path: root/lib/gitlab.rb
diff options
context:
space:
mode:
authordstull <dstull@gitlab.com>2019-08-21 14:09:39 -0400
committerdstull <dstull@gitlab.com>2019-08-28 10:47:59 -0400
commitfaace82f6debedb59b4d995e54017005c47f98ca (patch)
treee899448f2bd10ea246895e2d6f272c94cb57215e /lib/gitlab.rb
parent4b23faab2c4428a9cde7f16a08b3e6059069890c (diff)
downloadgitlab-ce-ce-enable-user-onboarding.tar.gz
Enable mock setup for onboarding development easierce-enable-user-onboarding
- this is a ce backport of the ee changes for: - it used to be complicated to setup your local environment in order to work on the onboarding tour. Full of temporary changes that would need backed out - now we can work on it merely by enabling the Feature flag :user_onboarding
Diffstat (limited to 'lib/gitlab.rb')
-rw-r--r--lib/gitlab.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gitlab.rb b/lib/gitlab.rb
index e8b938e46b1..ea0c0200f51 100644
--- a/lib/gitlab.rb
+++ b/lib/gitlab.rb
@@ -56,7 +56,11 @@ module Gitlab
end
def self.dev_env_org_or_com?
- Rails.env.development? || org? || com?
+ dev_env_or_com? || org?
+ end
+
+ def self.dev_env_or_com?
+ Rails.env.development? || com?
end
def self.ee?