×
Eventil - Find Tech Events
Official mobile app
FREE - In Google Play
View
×
Eventil
Official mobile app
FREE - In App Store
View
Slides not available
Add slides

Better Callback in Rails 5

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.

0 0
RailsConf 2015

This year’s event is hosted in Phoenix, known for its year-round sun and warm temperatures. As the biggest metropolis in the American Southwest, Phoenix mixes exciting big-city attractions and…