RailsConf 2015 - Better callbacks in Rails 5

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=X5WJ-v4MLzw



Duration: 29:27
1,558 views
8


By, Claudio Baccigalupo
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.




Other Videos By Confreaks


2015-05-12RailsConf 2015 - Sometimes a Controller is Just a Controller
2015-05-12RailsConf 2015 - 5 Secrets We Learned While Building a Bank in 16 Months
2015-05-12RailsConf 2015 - Scaling Rails for Black Friday and Cyber Monday
2015-05-12RailsConf 2015 - AMS, API, Rails and a developer, a Love Story
2015-05-12RailsConf 2015 - You, Too, Can Be A Webserver
2015-05-12RailsConf 2015 - Why Your New API Product Will Fail
2015-05-12RailsConf 2015 - High performance APIs in Ruby using ActiveRecord and Goliath
2015-05-12RailsConf 2015 - Playing Games In The Clouds
2015-05-12RailsConf 2015 - Processes and Threads - Resque vs. Sidekiq
2015-05-12RailsConf 2015 - Adventures in Federating Authorization and Authentication with OAuth
2015-05-12RailsConf 2015 - Better callbacks in Rails 5
2015-05-12RailsConf 2015 - Slightly Less Painful Time Zones
2015-05-12RailsConf 2015 - Speed Science
2015-05-12RailsConf 2015 - So Long, Hoboken: Migrating a Huge Production Codebase from Sinatra to Rails
2015-05-11RailsConf 2015 - Sometimes a Controller is Just a Controller
2015-05-08RailConf 2015 - Crossing the Canyon of Cognizance: A Shared Adventure
2015-05-08RailsConf 2015 - What I've Learned in 7 Years of Podcasting about Ruby
2015-05-08RailsConf 2015 - Data Warehouses and Multi-Dimensional Data Analysis
2015-05-08RailsConf 2015 - Get started with Component-based Rails applications!
2015-05-08RailsConf 2015 - Making Data Dance
2015-05-07RailsConf 2015 - Crossing the Canyon of Cognizance: A Shared Adventure