app/helpers/components/forms_helper.rb in shadcn-ui-0.0.10 vs app/helpers/components/forms_helper.rb in shadcn-ui-0.0.12
- old
+ new
@@ -1,13 +1,13 @@
module Components::FormsHelper
def render_form_with(**opts)
- form_with(**opts.merge(builder: ShadcnFormBuilder)) do |form|
+ form_with(**opts.merge(builder: Shadcn::FormBuilder)) do |form|
yield form
end
end
def render_form_for(obj, **opts)
- form_for(obj, **opts.merge(builder: ShadcnFormBuilder), html: opts) do |form|
+ form_for(obj, **opts.merge(builder: Shadcn::FormBuilder), html: opts) do |form|
yield form
end
end
end