diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-05 11:12:15 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-05 11:12:15 +0200 |
commit | 39e37677f291c344e25583916a1811a052e38db6 (patch) | |
tree | 86124779ea619b6029050337465094946c2de983 /app/models/key.rb | |
parent | 081c272b85d9344ff3a0b548f8f5eabc60e9a58d (diff) | |
download | gitlab-ce-39e37677f291c344e25583916a1811a052e38db6.tar.gz |
add remove keys from gitlab-shell by id
Diffstat (limited to 'app/models/key.rb')
-rw-r--r-- | app/models/key.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/key.rb b/app/models/key.rb index f1c9e42f04f..0c01edcbe71 100644 --- a/app/models/key.rb +++ b/app/models/key.rb @@ -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 |