lib/phlexi/form/components/has_many.rb in phlexi-form-0.6.1 vs lib/phlexi/form/components/has_many.rb in phlexi-form-0.6.2
- old
+ new
@@ -7,12 +7,11 @@
protected
delegate :association_reflection, to: :field
def build_attributes
- super
-
build_has_many_attributes
+ super
end
def build_has_many_attributes
attributes.fetch(:input_param) {
attributes[:input_param] = :"#{association_reflection.name.to_s.singularize}_ids"