Permit specific params in images controller

This commit is contained in:
Luis Ramos
2020-02-25 18:21:29 +00:00
parent 9681437fba
commit 495c3a3810

View File

@@ -34,6 +34,12 @@ module Spree
def destroy_before
@viewable = @image.viewable
end
def permitted_resource_params
params.require(:image).permit(
:attachment, :viewable_id, :alt
)
end
end
end
end