diff options
author | Peter Leitzen <pleitzen@gitlab.com> | 2019-01-09 00:43:25 +0300 |
---|---|---|
committer | Peter Leitzen <pleitzen@gitlab.com> | 2019-01-09 00:43:25 +0300 |
commit | 9f25383613a97ac2dc4c4e00426a6d351eb64436 (patch) | |
tree | b2bb67fe0b4adebe1412ee9260b589af6f2f6aa8 /app/models/ssh_host_key.rb | |
parent | 00092387ef855dbd28a3514ed85212344a8be5ed (diff) |
Implement SshHostKey.primary_key method
Diffstat (limited to 'app/models/ssh_host_key.rb')
-rw-r--r-- | app/models/ssh_host_key.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/ssh_host_key.rb b/app/models/ssh_host_key.rb index b6844dbe870..99a0c54a26a 100644 --- a/app/models/ssh_host_key.rb +++ b/app/models/ssh_host_key.rb @@ -52,6 +52,11 @@ class SshHostKey @compare_host_keys = compare_host_keys end + # Needed for reactive caching + def self.primary_key + 'id' + end + def id [project.id, url].join(':') end |