summaryrefslogtreecommitdiff
path: root/app/mailers
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-07-05 13:11:18 +0200
committerAlexis Reigel <mail@koffeinfrei.org>2017-07-27 15:43:37 +0200
commit075dae65b1a5b57788e4823b09bdcb8fa6eeaf8a (patch)
treefa6ec27d663d2a8e887281fd3e50c313dd300ecc /app/mailers
parenta06494bf71b589d2b9f5c80710b6c8e0749fc210 (diff)
downloadgitlab-ce-075dae65b1a5b57788e4823b09bdcb8fa6eeaf8a.tar.gz
find_by_id -> find_by(:id, ...)
Diffstat (limited to 'app/mailers')
-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