add remove keys from gitlab-shell by id

This commit is contained in:
Dmitriy Zaporozhets 2013-02-05 11:12:15 +02:00
parent 081c272b85
commit 39e37677f2
3 changed files with 10 additions and 10 deletions

View file

@ -81,7 +81,7 @@ class Key < ActiveRecord::Base
Key.where(identifier: identifier).count == 0
end
def owner_name
user.username
def shell_id
"key-#{self.id}"
end
end