Quantcast
Viewing latest article 20
Browse Latest Browse All 40

Run before_destroy callbacks before any other AR callbacks.

It's not vitally important for the moment, but it's generally a good idea to run before_destroy first, so that any dependent records still exist when the callback runs (e.g. in case we want to stop the destroy action from going through by returning false).

Viewing latest article 20
Browse Latest Browse All 40

Trending Articles