Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
0cb2439d05c2
Commit
3b090bb9
authored
Aug 24, 2017
by
Alexis Reigel
Browse files
simplify check for verified email in collection
parent
29dc38005453
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/gpg_key.rb
View file @
0cb2439d
...
...
@@ -70,11 +70,11 @@ def emails_with_verified_status
end
def
verified?
emails_with_verified_status
.
any?
{
|
_email
,
verified
|
verified
}
emails_with_verified_status
.
values
.
any?
end
def
verified_and_belongs_to_email?
(
email
)
emails_with_verified_status
.
any?
{
|
key_email
,
verified
|
key_email
==
email
&&
verified
}
emails_with_verified_status
.
fetch
(
email
,
false
)
end
def
update_invalid_gpg_signatures
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment