Skip to content
Snippets Groups Projects
Commit f39a7af0 authored by Oswaldo Ferreir's avatar Oswaldo Ferreir
Browse files

Add .org? method to Gitlab helper

dev_env_or_com? now considers dev.gitlab.org
parent 08083f43
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -10,11 +10,15 @@ module Gitlab
Gitlab.config.gitlab.url == COM_URL || gl_subdomain?
end
 
def self.org?
Gitlab.config.gitlab.url == 'https://dev.gitlab.org'
end
def self.gl_subdomain?
SUBDOMAIN_REGEX === Gitlab.config.gitlab.url
end
 
def self.dev_env_or_com?
Rails.env.test? || Rails.env.development? || com?
Rails.env.test? || Rails.env.development? || org? || com?
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment