What is the difference between `after_create` and `after_save` and when to use which?

after_create only works once – just after the record is first created.

after_save works every time you save the object – even if you’re just updating it many years later

So if you want to do this email operation only just the once (and then never again) then use after_create.

If you want to do it every time the object is saved, then do it in after_save

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)