register a custom wrapper only with custom builder sub-class, not globally?

9 views
Skip to first unread message

Jonathan Rochkind

unread,
Oct 17, 2018, 8:01:50 PM10/17/18
to SimpleForm
I have a custom wrapper. 

I know I can register it globally with:

    config.wrappers :my_custom_wrapper etc. 

I also have a custom form builder (ie `class SomeCustomBuilder < SimpleForm::FormBuilder`)

Is there any way I can set things up so my :my_custom_wrapper is available for use with my SomeCustomBuilder, without actually registering it globally?

Thanks for any input, 

Jonathan
Reply all
Reply to author
Forward
0 new messages