Hello! This is Andy bringing you another week's worth of highlights from Rails. Today also marks the official start of the #Rio2016 Olympic Games π§π· . New eventsΒ this time around include golf, sevens rugby and kitesurfing, so check those out!
New APIs retry_on and discard_on have been added to ActiveJob. These provide hooks for a job class to perform some additional functionality when exceptions occur. The PR for this feature has some nice discussion, check it out!
ActiveRecord can now distinguish between serialization failures and deadlocks. A more specific error in the case of deadlocks is now returned where supported (currently only PostgreSQL). Check the PR for an analysis of other database adapters and the latest code as the class names may have changed.
Since this commit from December, "week" durations are no longer converted to days. This means we need to add :weeks to the parts that ActiveSupport::TimeWithZone will consider being of variable duration to take account of DST transitions.
This change provides backwards compatibility for Rails 4.2 based on YAML serialization changes made in Rails 5.
Wrapping Up
That's it from This Week in Rails! There were many other great contributions and investigations too numerous to list here, but feel free to check them out!