Commit 075dae65 authored by Alexis Reigel's avatar Alexis Reigel

find_by_id -> find_by(:id, ...)

parent a06494bf
......@@ -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
......
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