view_component-form icon indicating copy to clipboard operation
view_component-form copied to clipboard

Dynamic object name in test helper

Open woller opened this issue 1 year ago • 2 comments

Instead of hard coding :useras the object name in the supplied test_helper, this PR checks if the class of the object passed to form_with responds to model_name and uses the param key from there. If it does not respond, it defaults to user.

woller avatar Jul 18 '24 12:07 woller

Great! Can you please add a changelog entry?

Also, can we add a test that uses this new behavior?

Spone avatar Jul 19 '24 13:07 Spone

@woller can you rebase? We fixed CI in main.

Spone avatar Jun 05 '25 14:06 Spone