Welcome to This week in Rails, your weekly inside scoop of interesting commits, pull requests and more from Rails.
Hi, this is Kasper back again to disarm this ticking trickster of a timed Rails news explosive to you. If you are interested in joining us let Godfrey know.
The first gift of the holidays is here. Our contributor elves have been smashing some minor bugs for you. They couldn't have done so without you testing your apps, so please keep it up!
The core team is prepping the reindeer as we speak, so the final release shouldn't be long from now.
Before when you hit your errors page, you would've seen the request parameters dumped straight. This pull request changes all that with pretty printing. You'll have an easier time spotting what's going on if you have a lot of nested parameters. Check the link for screenshots if you can't get enough of that printing done pretty.
Instead of outputting some sensitive information to your production logs. A job argument's Global ID will be logged instead. Unless the argument doesn't have a Global ID, then its inspect output will be run instead.
ActiveSupport::MessageVerifier got spruced up this week with two spanking new methods. #verified was added to avoid raising an exception (like #verify does) when the message can't be verified. Also has your message been tampered with? Use #valid_message? and avoid the doubt.
The linked pull request has some nice back and forth and follow up commits, which could be helpful if you want to start contributing. winkwink
This was news to me, but apparently this was a valid query: Author.where(name: Mary), with Mary here being a class. Well, so long! This pull request deprecates that option.
Previously you could commit a perfect crime in your integration tests be avoiding a leading slash when making your requests, like this: get "vault/money". However, that "feature" was a byproduct of the implementation, and you'll have to find another way to make that work.
It least it wasn't 5 five nosy teenagers and a dog that caught you.
Wrapping up
That's all for this issue of This week in Rails. If you are interested in the changes we haven't covered here, you can take a look for yourself.
Busy being a secret Santa for your Rails friends? Why not spread a little cheer by sending a link to this newsletter.
Santa™ does approve this message. He also wants to know if you've been good this year. I said sure and booked you all down for sweaters. Extra itchy and slightly made from squirrel.