mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Remove without_protection: true argument from #create calls
Needed for using Strong Parameters in Rails 4
This commit is contained in:
@@ -59,7 +59,7 @@ module OpenFoodNetwork
|
||||
option_type = product.variant_unit_option_type
|
||||
if option_type
|
||||
name = option_value_name
|
||||
ov = Spree::OptionValue.where(option_type_id: option_type, name: name, presentation: name).first || Spree::OptionValue.create!({ option_type: option_type, name: name, presentation: name }, without_protection: true)
|
||||
ov = Spree::OptionValue.where(option_type_id: option_type, name: name, presentation: name).first || Spree::OptionValue.create!({ option_type: option_type, name: name, presentation: name })
|
||||
option_values << ov
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user