mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
refactored tests, changed condition for validate email data
This commit is contained in:
parent
3a8ab93dd7
commit
1048fbdd35
4 changed files with 36 additions and 7 deletions
|
@ -50,7 +50,7 @@ def prepare_contacts(options)
|
|||
if options[:domain_name].present?
|
||||
contacts_by_domain(options[:domain_name])
|
||||
else
|
||||
Contact.recently_not_validated
|
||||
Contact.all
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -58,7 +58,7 @@ def contacts_by_domain(domain_name)
|
|||
domain = ::Domain.find_by(name: domain_name)
|
||||
return unless domain
|
||||
|
||||
domain.contacts.recently_not_validated
|
||||
domain.contacts
|
||||
end
|
||||
|
||||
def opts_hash
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue