class DocumentUploader < CarrierWave::Uploader::Base
  
  storage :file

  def extension_whitelist
    %w(pdf doc)
  end
  
  def store_dir
    "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
  end

end
