diff --git a/app/controllers/avo/associations_controller.rb b/app/controllers/avo/associations_controller.rb index fd66776d22..698b9a2597 100644 --- a/app/controllers/avo/associations_controller.rb +++ b/app/controllers/avo/associations_controller.rb @@ -81,7 +81,7 @@ def destroy association_name = BaseResource.valid_association_name(@model, params[:related_name]) if reflection_class == "HasManyReflection" - @model.send(association_name).destroy @attachment_model + @model.send(association_name).delete @attachment_model else @model.send("#{association_name}=", nil) end