diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-05 14:11:18 +0300 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 16:43:37 +0300 |
commit | 075dae65b1a5b57788e4823b09bdcb8fa6eeaf8a (patch) | |
tree | fa6ec27d663d2a8e887281fd3e50c313dd300ecc /app/mailers/emails | |
parent | a06494bf71b589d2b9f5c80710b6c8e0749fc210 (diff) |
find_by_id -> find_by(:id, ...)
Diffstat (limited to 'app/mailers/emails')
-rw-r--r-- | app/mailers/emails/profile.rb | 4 |
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 |