dwilkie/carrierwave_direct — pull request #31 by frahugo (2012-07-09 15:41:28+00:00)
Title: CarrierWaveDirect validators added to the ActiveRecord class even if the uploader is a standard CarrierWave uploader

I ran into the same issue as Amiel Martin when using standard CarrierWave uploaders alongside CarrierWaveDirect uploaders:

NoMethodError (undefined method `has_key?' for :DocumentFileUploader):

The problem is that `#mount_uploader` injects CarrierWaveDirect validators into the ActiveRecord class, even when the uploader is not a CarrierWaveDirect uploader.

I wrote a spec for the problem and implemented Amiel's fix.