Better callbacks in Rails 5
summary
Claim: Rails 5 stops treating returning false no longer halts callback chains; to stop a chain code must raise an exception to stop a callback. This affects ActiveSupport, ActiveRecord, ActiveModel and ActiveJob. The talk inspects Rails internals and PR history, shows the lines that changed, demonstrates the deprecation warnings in 4.2 and how to toggle the old behavior via config.active_support.halt_callback_chains_on_return_false while migrating and tests to confirm fixes.
AI-written summary · about







