Sunday, October 29, 2017

This Week in Rails: 5.1 deprecations removed, SystemTestCase load hook and more!

Posted by kaspth

Hey there, it’s Kasper, bringing you the latest edition of This Week in Rails!

Remove Rails 5.1 deprecations from the code

All the code that was deprecated in Rails 5.1 is now removed in one fell swoop by the Rails 5.2 release manager — now you know how these removals are handled too, so please don’t send individual removal PRs.

Psssst: it also brings us another step closer to the first 5.2 beta.

Add SystemTestCase load hook

Allows gems or app code to hook in when
ActionDispatch::SystemTestCase has been fully loaded.

Add allow_other_host option to redirect_back

When passed false, the new allow_other_host option will restrict redirect_back links to just the current host, so users will only stay on your site.

It’s not on by default, so users can enjoy a trip off-world on another host.

That’s it for this now! As always, there isn’t enough time to cover every change if you’d like check out the full list of changes yourself.