Commit 1a95f989 authored by Peter Leitzen's avatar Peter Leitzen

Implement SshHostKey.primary_key method

parent 10f5cfe3
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment