passive_columns v0.3.5
Added
-
with_passive_columnsscope — include passive columns in the mainSELECTinstead of loading them later.- No arguments: sets
select_valuesto the fullcolumn_nameslist - With arguments: adds only names that are declared as passive; any other names are ignored. If nothing passive remains after filtering, the relation behaves like the default (passive columns still omitted from the automatic select).
- Works with chained relations and associations (e.g.
user.projects.with_passive_columns(:description)ormerge(Model.with_passive_columns(...))).
- No arguments: sets
-
Debug logging when a passive reader runs the extra query: one
debugline prefixed with[passive_columns], with model, column, and primary-key context
Documentation
- README updated for
with_passive_columns, association usage, and lazy-load logging behavior