app/models/employee.rb
# run when creating employee, or status changing from deleted to active
run when creating employee, or status changing from deleted to active
run when creating employee or status changing from deleted to active
def execute_matching
   if is_new
      EmployeeMatchingJob.perform_later self
    else
      EmployeeMatchingJob.perform_later
    end
  end
def execute_matching if is_new EmployeeMatchingJob . perform_later self else EmployeeMatchingJob . perform_later end end
run when creating employee, or status changing from deleted to active
run when creating employee or status changing from deleted to active