Snippets uploads fails when background upload is enabled
If the background_upload
feature is enabled, snippets markdown uploads will fails because they might not have a model
.
Solution
Add a guard clause in ObjectStorage::Concern#schedule_background_upload?
to check for the model presence.