Read about our upcoming Code of Conduct on this issue

Commit 8c537039 authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Moving 400 lines of code


Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent e41d7a531cf2
......@@ -2182,5 +2182,306 @@ def fetch_branch_allows_collaboration?(user, branch_name)
else
check_access.call
end
end
end
......@@ -441,6 +441,20 @@ def self.internal_attributes
[:ghost]
end
def full_website_url
return "http://#{website_url}" if website_url !~ %r{\Ahttps?://}
website_url
end
def short_website_url
website_url.sub(%r{\Ahttps?://}, '')
end
def all_ssh_keys
keys.map(&:publishable_key)
end
def internal?
self.class.internal_attributes.any? { |a| self[a] }
end
......@@ -845,19 +859,6 @@ def can_leave_project?(project)
project.project_member(self)
end
def full_website_url
return "http://#{website_url}" if website_url !~ %r{\Ahttps?://}
website_url
end
def short_website_url
website_url.sub(%r{\Ahttps?://}, '')
end
def all_ssh_keys
keys.map(&:publishable_key)
end
def temp_oauth_email?
email.start_with?('temp-email-for-oauth')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment