lib/compony/model_fields/association.rb in compony-0.5.1 vs lib/compony/model_fields/association.rb in compony-0.5.2
- old
+ new
@@ -42,10 +42,10 @@
end
end
end
def simpleform_input(form, _component, name: nil, **input_opts)
- return form.association name || @name, **input_opts
+ return form.association name || @name, **{ label_method: :label }.deep_merge(input_opts)
end
def simpleform_input_hidden(form, _component, name: nil, **input_opts)
return form.input name || @schema_key, as: :hidden, **input_opts
end