diff options
author | dstull <dstull@gitlab.com> | 2019-08-21 14:09:39 -0400 |
---|---|---|
committer | dstull <dstull@gitlab.com> | 2019-08-28 10:47:59 -0400 |
commit | faace82f6debedb59b4d995e54017005c47f98ca (patch) | |
tree | e899448f2bd10ea246895e2d6f272c94cb57215e /lib/gitlab.rb | |
parent | 4b23faab2c4428a9cde7f16a08b3e6059069890c (diff) | |
download | gitlab-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.rb | 6 |
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? |