From a8a4d8d0a804e5dc852441cea6841c7112c06c12 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Thu, 18 Jun 2020 17:20:38 +0200 Subject: [PATCH] suite --- app/models/p_customer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/p_customer.rb b/app/models/p_customer.rb index 0783915..5a72759 100644 --- a/app/models/p_customer.rb +++ b/app/models/p_customer.rb @@ -131,7 +131,7 @@ class PCustomer < ApplicationRecord after_create :do_import - after_save do + after_update do self.do_import if self.refresh_import end