Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove wrong definition of :option_values_attributes for variants
There's not a nested attributes definition for option values in variants. On top of that, having `:option_values_attributes` declared as a plain Symbol would have no effect. Rails requires that nested attributes are explicitly declared [1]. Variants already support `:option_value_ids` array [2] which cover the most common use case (adding option values to an already created variant), so there's no need to provide such a nested hierarchy. 1 - https://api.rubyonrails.org/classes/ActionController/StrongParameters.html 2 - https://github.com/solidusio/solidus/blob/07c88ddd1603699939ac0343965fa88dc2e1851a/core/lib/spree/permitted_attributes.rb#L135
- Loading branch information