use User#verified_email? for gpg key verification

This commit is contained in:
Alexis Reigel 2017-08-28 12:31:14 +02:00
parent 98016ef7f3
commit d71d10c983

View file

@ -56,7 +56,7 @@ class GpgKey < ActiveRecord::Base
def verified_user_infos
user_infos.select do |user_info|
user_info[:email] == user.email
user.verified_email?(user_info[:email])
end
end
@ -64,7 +64,7 @@ class GpgKey < ActiveRecord::Base
user_infos.map do |user_info|
[
user_info[:email],
user_info[:email] == user.email
user.verified_email?(user_info[:email])
]
end.to_h
end