Fix remaining Rails/WhereExists
cop violations, regenerate todo (#28892)
This commit is contained in:
parent
1a565e4bea
commit
7c9c6c7f80
7 changed files with 7 additions and 22 deletions
|
@ -38,7 +38,7 @@ module Admin
|
|||
log_action :create, @email_domain_block
|
||||
|
||||
(@email_domain_block.other_domains || []).uniq.each do |domain|
|
||||
next if EmailDomainBlock.where(domain: domain).exists?
|
||||
next if EmailDomainBlock.exists?(domain: domain)
|
||||
|
||||
other_email_domain_block = EmailDomainBlock.create!(domain: domain, allow_with_approval: @email_domain_block.allow_with_approval, parent: @email_domain_block)
|
||||
log_action :create, other_email_domain_block
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue