comment out force delete check callback

This commit is contained in:
olegphenomenon 2022-04-25 16:07:54 +03:00
parent 43bd6f2907
commit bc0a9d4f99
4 changed files with 89 additions and 92 deletions

View file

@ -35,7 +35,7 @@ class ValidationEvent < ApplicationRecord
scope :smtp, -> { where('event_data @> ?', { 'check_level': 'smtp' }.to_json) }
scope :by_object, ->(object) { where(validation_eventable: object) }
after_create :check_for_force_delete
# after_create :check_for_force_delete
def self.validated_ids_by(klass)
recent.successful.where('validation_eventable_type = ?', klass)