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
When the better_errors page is displayed with the binding_of_caller gem enabled, any ActiveRecord scopes are inspected/expanded, which can result in entire database tables being loaded and inspected. Is it possible, or even acceptable in this situation, to perhaps not inspect the scope but rather '.to_sql' it? Maybe make that an option? Or perhaps this is more of an issue for the binding_of_caller gem?
For example, if the companies table has thousands of active records, the following will trigger a very large amount of output:
This happens because the inspect method on ActiveRecord::Relation actually performs the query and inspects the result data. I believe Rails 4 changes this behaviour so inspect doesn't dump such a massive amount of data.
When the better_errors page is displayed with the binding_of_caller gem enabled, any ActiveRecord scopes are inspected/expanded, which can result in entire database tables being loaded and inspected. Is it possible, or even acceptable in this situation, to perhaps not inspect the scope but rather '.to_sql' it? Maybe make that an option? Or perhaps this is more of an issue for the binding_of_caller gem?
For example, if the companies table has thousands of active records, the following will trigger a very large amount of output:
The text was updated successfully, but these errors were encountered: