Skip to content

v0.3.5

Latest

Choose a tag to compare

@headmandev headmandev released this 11 May 23:46

passive_columns v0.3.5

Added

  • with_passive_columns scope — include passive columns in the main SELECT instead of loading them later.

    • No arguments: sets select_values to the full column_names list
    • 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) or merge(Model.with_passive_columns(...))).
  • Debug logging when a passive reader runs the extra query: one debug line 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