summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/mailers/emails/profile.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/mailers/emails/profile.rb b/app/mailers/emails/profile.rb
index 4580e1c83bd..c401030e34a 100644
--- a/app/mailers/emails/profile.rb
+++ b/app/mailers/emails/profile.rb
@@ -14,7 +14,7 @@ module Emails
end
def new_ssh_key_email(key_id)
- @key = Key.find_by_id(key_id)
+ @key = Key.find_by(id: key_id)
return unless @key
@@ -24,7 +24,7 @@ module Emails
end
def new_gpg_key_email(gpg_key_id)
- @gpg_key = GpgKey.find_by_id(gpg_key_id)
+ @gpg_key = GpgKey.find_by(id: gpg_key_id)
return unless @gpg_key