lib/carrierwave/uploader/default_path.rb in carrierwave-0.3.4 vs lib/carrierwave/uploader/default_path.rb in carrierwave-0.3.5
- old
+ new
@@ -5,9 +5,10 @@
module DefaultPath
def initialize(*args)
super
if default_path
+ puts "WARNING: Default Path is deprecated and will be removed in CarrierWave 0.4. Please use default_url instead!"
@file = CarrierWave::SanitizedFile.new(File.expand_path(default_path, public))
def @file.blank?; true; end
end
end
\ No newline at end of file