mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
move validator from callback to action interactor and to the api controller
This commit is contained in:
parent
f4d276fc44
commit
8eee65579b
9 changed files with 127 additions and 116 deletions
|
@ -85,8 +85,8 @@ class Contact < ApplicationRecord
|
|||
after_save :update_related_whois_records
|
||||
before_validation :clear_address_modifications, if: -> { !self.class.address_processing? }
|
||||
|
||||
after_save :validate_email_by_regex_and_mx
|
||||
after_save :remove_force_delete_for_valid_contact
|
||||
# after_save :validate_email_by_regex_and_mx
|
||||
# after_save :remove_force_delete_for_valid_contact
|
||||
|
||||
self.ignored_columns = %w[legacy_id legacy_history_id]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue