thoughtbot/paperclip — pull request #679 by sjmadsen (2011-12-14 02:40:09+00:00)
Title: Teach missing_attachment_styles.rb how to handle a new attachment in an existing model

This is a one-line fix to handle the case where a model with an existing attachment gains a second attachment, not just new styles on the first attachment. Prior to this fix, running "rake paperclip:refresh:missing_styles" generated a crash (TypeError: can't convert nil into Array).

The pull request includes a couple of other commits from a discussion last November that was resolved on Paperclip's master branch in a cleaner way. The merge commit (HEAD^) resolves this difference, so this pull really only deals with the newest commit for the missing styles issue.