CarrierWave + Mongoid with subclassing problem

26 Jul 2012

If you have a model that subclasses another model, and the superclass defines a carrierwave field, you have to redefine that field in the subclass.

Otherwise, you would encounter a very weird, intermittent problem; It looks like some of the times the carrierwave field is not loaded properly.

Give it a kudos