trailblazer / reform

Form objects decoupled from models.
https://trailblazer.to/2.1/docs/reform.html
MIT License
2.49k stars 184 forks source link

inherited validation blocks ignore :with option #442

Open fran-worley opened 7 years ago

fran-worley commented 7 years ago

This probably applies to other validation blocks, but when the base block doesn't include form it doesn't get injected as a param.

In my example this is a validation block inherited from a block in the superclassed form/contract.

reform v2.3.0.rc1 (and rc2 branch)

ddidier commented 7 years ago

I cannot make it work in the default group either. As a workaround I use options[:form]

fran-worley commented 7 years ago

@ddidier this is a confirmed bug.