Andrew Novo

26 Followers
44 Following
26 Posts
Gainfully employed philosophy major. Dev at Shopify.
@tenderlove You could use jira and associate all your branches with jira tickets!! 💯
@nateberkopec Yes! And you can always set the BACKTRACE env var to get the whole trace in situations when you need it.
@tenderlove gamecube controller
@flavorjones do you have a line on a good bbq place
@zenspider personally i'd want the id tho. But I agree the default output is too verbose, that's part of why I implemented this feature.

@zenspider self.attributes_for_inspect = []

=)

In Rails 7.2 you can configure the output of a model's #inspect method. I wrote a post about the performance issue that motivated this feature and how you can use it for some nicer DX :)

https://railsatscale.com/2024-04-30-fixing-a-footgun-in-activerecord-core-inspect/

Fixing a footgun in ActiveRecord::Core#inspect

The inspect method on Active Record models returns a string including the model’s class and a list of all its attributes and their values. In Rails 7.2, you can configure which attributes are included in the output of inspect. In this post, I’ll discuss the performance issue that led me to implement this feature. I’ll also talk about how this feature can be used to improve developer experience.

Rails at Scale
It me

Who wants to go to a Detroit Tigers game with me on Friday, May 10th (after Rails Conf)?

I've already got @ufuk, @dwfrank, and @drewnovo signed up. Let me know by the end of the week so I can buy tix!

6:40pm against the Astros

@tenderlove Array#beseech