Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Load only needed records on ActiveRecord::Relation#inspect #28592
Instead of loading all records and returning only a subset of those, just load the records as needed.
The original behavior could be bad when someone types
To query and inspect all, we can use