remove unused code related to gitolite

This commit is contained in:
Dmitriy Zaporozhets 2013-02-26 11:11:43 +02:00
parent c08f19f275
commit 15c0e58a49
3 changed files with 0 additions and 42 deletions

View file

@ -216,17 +216,6 @@ class User < ActiveRecord::Base
UsersProject.where(project_id: authorized_projects.map(&:id), user_id: self.id)
end
# Returns a string for use as a Gitolite user identifier
#
# Note that Gitolite 2.x requires the following pattern for users:
#
# ^@?[0-9a-zA-Z][0-9a-zA-Z._\@+-]*$
def identifier
# Replace non-word chars with underscores, then make sure it starts with
# valid chars
email.gsub(/\W/, '_').gsub(/\A([\W\_])+/, '')
end
def is_admin?
admin
end