You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was recently faced with N+1 queries which surprised me as I had strict_loading enabled in every controller.
Digging into the issue I noticed that active_type drops the strict_loading state after casting an object:
I was recently faced with N+1 queries which surprised me as I had
strict_loading
enabled in every controller.Digging into the issue I noticed that active_type drops the
strict_loading
state after casting an object:A quick workaround would be to re-enable it after casting:
I think it would make sense to fix this in the gem itself, WDYT?
The text was updated successfully, but these errors were encountered: