diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-26 13:11:43 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-26 13:11:43 +0400 |
commit | 15c0e58a49d623a0f8747e1d7e74364324eeb79f (patch) | |
tree | df57e84151a962b55474141cbcdbdd07e6440059 /app/models/key.rb | |
parent | c08f19f275182a24fa675c31d630126c75b50af9 (diff) |
remove unused code related to gitolite
Diffstat (limited to 'app/models/key.rb')
-rw-r--r-- | app/models/key.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/app/models/key.rb b/app/models/key.rb index edb0bcd61fd..53eee511e13 100644 --- a/app/models/key.rb +++ b/app/models/key.rb @@ -21,7 +21,6 @@ class Key < ActiveRecord::Base attr_accessible :key, :title before_validation :strip_white_space - before_save :set_identifier validates :title, presence: true, length: { within: 0..255 } validates :key, presence: true, length: { within: 0..5000 }, format: { :with => /ssh-.{3} / }, uniqueness: true @@ -48,14 +47,6 @@ class Key < ActiveRecord::Base errors.add(:key, "can't be fingerprinted") if $?.exitstatus != 0 end - def set_identifier - if is_deploy_key - self.identifier = "deploy_#{Digest::MD5.hexdigest(key)}" - else - self.identifier = "#{user.identifier}_#{Time.now.to_i}" - end - end - def is_deploy_key !!project_id end |