Re: [Rails-core] [Feature Request] 'On' option for after_save callbacks

2016-09-05 Thread Rafael Mendonça França
Is not that what after_update does? On dom, 4 de set de 2016 at 17:46 Anuj N wrote: > Hi folks! > > As per https://github.com/rails/rails/issues/22515, 5.0 saw > after_create_commit, after_update_commit, after_destroy_commit being > added as aliases to after_commit,

[Rails-core] [Feature Request] 'On' option for after_save callbacks

2016-09-04 Thread Anuj N
Hi folks! As per https://github.com/rails/rails/issues/22515, 5.0 saw after_create_commit, after_update_commit, after_destroy_commit being added as aliases to after_commit, on:create, etc. From https://github.com/rails/rails/issues/12502, it seems that `on` flag only works for after_commit