Main Content

Better Callbacks In Rails 5

About the Talk

April 21, 2015 12:00 PM

Atlanta, GA

Atlanta, GA

In Rails 5, the old way of returning false to implicitly halt a callback chain will not work anymore.

This change will impact any codebase using ActiveSupport, ActiveRecord, ActiveModel or ActiveJob.

Methods like before_action, before_save, before_validation will require developers to explicitly throw an exception in order the halt the chain.

This talk will explain the motivations behind the new default, will delve into the internals of Rails to show the actual code, and will help developers and gem maintainers safely upgrade their apps to Rails 5.

Ratings and Recommendations

This Talk hasn't been rated yet. Sign In to rate Talks.

comments powered by Disqus