Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
# encoding: utf-8
class TrackUploader < CarrierWave::Uploader::Base
include Sprockets::Helpers::RailsHelper
include Sprockets::Helpers::IsolatedHelper
include CarrierWaveDirect::Uploader
# Recommended for use with fog
include CarrierWave::MimeTypes
process :set_content_type
def extension_white_list
%w(mp3 m4a wav aiff flac)
def filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment