~/talk

Better callbacks in Rails 5

Talkat RailsConf 2015 · 2015-04-21..04-23· [ruby-on-rails]
slides:none on file

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

  1. 0:00Start
  2. 4:23Rails 5: explicit
  3. 7:14Deprecation policy
  4. 21:51A good principle
  5. 24:25Use the controller
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.