3 ms·As of rails 6.1 you can use active records built in strict_loading to solve this problem as wellby pjm331 2y agoAs of rails 6.1 you can use active records built in strict_loading to solve this problem as well