diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-04 15:07:56 +0200 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-04 15:07:56 +0200 |
| commit | 27d9ac0fe8a33f0e94178c1f46826bc114e16467 (patch) | |
| tree | acfb46c9189213045c893dfe7ad35be211e483e0 /app/models/key.rb | |
| parent | 6b9a60904451fb192e445774768ccb53f7f8d2f8 (diff) | |
| download | gitlab-ce-27d9ac0fe8a33f0e94178c1f46826bc114e16467.tar.gz | |
Make gitlab works with gitlab-shell
Diffstat (limited to 'app/models/key.rb')
| -rw-r--r-- | app/models/key.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/key.rb b/app/models/key.rb index 2bf50f56565..f1c9e42f04f 100644 --- a/app/models/key.rb +++ b/app/models/key.rb @@ -80,4 +80,8 @@ class Key < ActiveRecord::Base def last_deploy? Key.where(identifier: identifier).count == 0 end + + def owner_name + user.username + end end |
