Sha256: 17523cf17291462838e16251f74c11e32d6a8b81ec5f44593320a962643973a2
Contents?: true
Size: 444 Bytes
Versions: 5
Compression:
Stored size: 444 Bytes
Contents
# encoding: utf-8 class PhotoUploader < CarrierWave::Uploader::Base include CarrierWave::RMagick storage :file def store_dir "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end def default_url '/fallback/' + [version_name, 'photo_default.png'].compact.join('_') end version :thumb do process :resize_to_fill => [200, 200] end def extension_white_list %w(jpg jpeg gif png gif) end end
Version data entries
5 entries across 5 versions & 1 rubygems