Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`.load_ar_obj` will defer to `.load_ar_objs` when it is passed an array, which will do a `.collect` call to `load_ar_obj` in return. This is a typical N+1, so this change takes the constantize code from `.load_ar_obj` and applies it to the `allowed_hosts` to make a single SQL call to for the needed hosts.
- Loading branch information