Active Record Callbacks

Expert guidance for Active Record callbacks — lifecycle hooks, ordering, conditional execution, transaction callbacks, and halting. VERY opinionated about when NOT to use callbacks. Use when working with callbacks, before_save, after_create, after_commit, lifecycle hooks, before_validation, around_save, after_update, before_destroy, or when deciding whether logic belongs in a callback vs a service object.

thinkoodle Updated 7 repo stars

File contents

thinkoodle/rails-skills commit 9e6638225a

Frequently asked questions

npx get-skill add thinkoodle/active-record-callbacks-2