If adding an attachment to a model with a default scope on it, the 'in processing' flag does not get updated from true to false once delayed paperclip has finished its work, so the record is left marked as 'in processing' even after its attachment has been processed.
This pull request simply adds unscoped to ensure that default scopes are removed before running the 'in processing' updates, both when setting it to true and to false.
If adding an attachment to a model with a default scope on it, the 'in processing' flag does not get updated from true to false once delayed paperclip has finished its work, so the record is left marked as 'in processing' even after its attachment has been processed.
This pull request simply adds
unscoped
to ensure that default scopes are removed before running the 'in processing' updates, both when setting it totrue
and tofalse
.