dwilkie/carrierwave_direct — pull request #133 by greysteil (2014-04-01 16:49:26+00:00)
Title: Allow format validators to be used on update

Currently the format validators in carrierwave_direct explicitly check whether they're being run on a new record. That means they can't be used when uploading a file to an existing record.

This PR changes the validators so they're agnostic to whether the record is being created or updated, and updates the activerecord mixin to only call these validators on create. That makes the validators much more re-usable.