Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is an extremely inneficient way to check if a constant is defined. `Object.constants.size` is `135` in a raw irb session. On our large app, not even eager loaded it's `4521`. I didn't bother to check in production, but it's probably several times that. So here we're both allocating a very large array, and doing a `O(n)` search into it.
- Loading branch information