Sha256: 382421c315da7fc080f8b7044fa2510ea729c5cd77aabdce2cc42e64fe495e44
Contents?: true
Size: 298 Bytes
Versions: 2
Compression:
Stored size: 298 Bytes
Contents
class ProfilePictureUploader < ImageUploader def store_dir "uploads/profile_pictures/#{model.id}" end version :large do process :resize_to_fill => [400, 400] end version :small do process :resize_to_fill => [100, 100] end def default_url 'default.png' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
usman-0.3.1 | app/uploaders/profile_picture_uploader.rb |
usman-0.3.0 | app/uploaders/profile_picture_uploader.rb |