pantographe / view_component-form

Rails FormBuilder for ViewComponent
MIT License
204 stars 16 forks source link

It'd be nice to have the ability to customize the base class so that it can inherit our own class #159

Closed joelzwarrington closed 5 months ago

joelzwarrington commented 5 months ago

It'd be nice if ViewComponent::Form::BaseComponent could be configured so that we can define our own parent class, instead of inheriting from ViewComponent::Base.

joelzwarrington commented 5 months ago

Is this something you'd be open to if I worked on it?

I was thinking something similar to Devise' parent_controller configuration where it'd be defined as a string in configuration via initializer and then used like this.

Spone commented 5 months ago

Hi @joelzwarrington thanks for opening an issue for this. We discussed related topics in #69 and #80. We're totally open to a PR for this!