Sha256: fa3ac542aa59afa127e4afa3d391347874ca5447042b77f7caf74401523652b7
Contents?: true
Size: 382 Bytes
Versions: 37
Compression:
Stored size: 382 Bytes
Contents
#require 'carrierwave/mongoid' # #class Uploader< CarrierWave::Uploader::Base # include Mongoid::Document # #include CarrierWave::RMagick # storage :file # # def filename # "#{id}.#{file.extension}" if original_filename.present? # end # def extension_white_list # %w(jpg jpeg gif png) # end # def store_dir # File.join(Dir.pwd, 'public/assets/images') # end #end
Version data entries
37 entries across 37 versions & 1 rubygems