Verified Commit 30b5e10e authored by paz's avatar paz

Cache Subscription#key

parent 29a061e9
......@@ -34,7 +34,7 @@ module Schleuder
# TODO: make key-related methods a concern, so we don't have to go
# through the list and neither re-implement the methods here.
# Prefix '0x' to force GnuPG to match only hex-values, not UIDs.
list.keys("0x#{self.fingerprint}").first
@key ||= list.keys("0x#{self.fingerprint}").first
end
def send_mail(mail)
......
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