Closed mateusnava closed 1 year ago
Similar to the accepts_nested_attributes_for active record, the idea here is to support the allow_destroy option in the accepts_nested_attributes_for store_model method.
accepts_nested_attributes_for
allow_destroy
For example: accepts_nested_attributes_for [:suppliers, allow_destroy: true]
accepts_nested_attributes_for [:suppliers, allow_destroy: true]
Active Record documentation: https://api.rubyonrails.org/classes/ActiveRecord/NestedAttributes/ClassMethods.html#method-i-accepts_nested_attributes_for
Similar to the
accepts_nested_attributes_for
active record, the idea here is to support theallow_destroy
option in theaccepts_nested_attributes_for
store_model method.For example:
accepts_nested_attributes_for [:suppliers, allow_destroy: true]
Active Record documentation: https://api.rubyonrails.org/classes/ActiveRecord/NestedAttributes/ClassMethods.html#method-i-accepts_nested_attributes_for