lib/backgrounder/orm/base.rb in carrierwave_backgrounder-0.4.2 vs lib/backgrounder/orm/base.rb in carrierwave_backgrounder-0.4.3
- old
+ new
@@ -80,10 +80,10 @@
self.process_#{column}_upload = true
end
def write_#{column}_identifier
super and return if process_#{column}_upload
- self.#{column}_tmp = _mounter(:#{column}).cache_name if _mounter(:#{column}).cache_name
+ self.#{column}_tmp = #{column}_cache if #{column}_cache
end
def store_#{column}!
super if process_#{column}_upload
end