mirror of
https://github.com/we-promise/sure.git
synced 2026-05-30 15:59:02 +00:00
Two fixes needed to make the live Investments toggle persist:
- Settings::PreferencesController: `permit(family: { modules: {} })`
silently dropped all subkeys. Use explicit allowed-keys array
derived from `Family::AVAILABLE_MODULES`.
- settings/preferences/show.html.erb: the explicit `hidden_field_tag`
for the off-value collided IDs with DS::Toggle's checkbox; the
resulting label/input mismatch broke click toggling. Pass `id: nil`
to the hidden field.
Also includes db/schema.rb regenerated from the new migration, and
adds five screenshots under docs/screenshots/explore-feature-modules/
for the draft PR body.