trailblazer / formular

Form builder for Ruby. Fast, Furious, and Framework-Agnostic.
MIT License
81 stars 17 forks source link

Now Formular::Helper.builder as initiliazer works! #42

Closed emaglio closed 7 years ago

emaglio commented 7 years ago

Ciao, since day one I was trying to use Formular::Helper.builder= :bootstrap3 as initializer in my projects but it wouldn't work here below how I have fixed it. ISSUE: _builder is called when the builder option is not present in form so if @builder is not set load_builder(:basic) is called which is perfect BUT if @builder is initialized, load_builder is not called at all. FIXED: first make sure that builder_name is either set by the form method or by the initializer or just basic and then call load_builder.

Hope this makes sense ciao