• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MushroomObserver / mushroom-observer / 19621639274

24 Nov 2025 02:38AM UTC coverage: 95.177% (+0.02%) from 95.156%
19621639274

Pull #3489

github

nimmolo
Fix new Phlex email form params in controllers

Most of our forms concern db models. But some of our older forms just send params.

Phlex superforms all need to use a form object - whether it's the database record or a PORO (using ActiveModel), superform wants to validate the object you're creating/updating when you send the form, as it should - this is a sturdier code pattern than validating params individually. The params become attributes of that form object.

So the Phlex conversion has involved creating objects for object-less forms. But claude and i forgot to update the controllers to look for the params nested under these objects. This PR fixes that.

This "form-object" thing is incidentally the same pattern we now use on Search Forms.
Pull Request #3489: Next set of Phlex superform components

301 of 314 new or added lines in 19 files covered. (95.86%)

8 existing lines in 1 file now uncovered.

30688 of 32243 relevant lines covered (95.18%)

693.21 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.67
/app/helpers/forms_helper.rb


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc