0
0
Fork 0
mirror of https://github.com/ENSL/ensl.org.git synced 2025-01-19 16:01:26 +00:00
ensl.org/app/uploaders/team_uploader.rb

16 lines
343 B
Ruby
Raw Normal View History

# encoding: utf-8
class TeamUploader < ImageUploader
# Create different versions of your uploaded files:
process :resize_to_limit => [500, 200]
def store_dir
File.join("local", "logos")
end
# Provide a default URL as a default if there hasn't been a file uploaded:
def default_url
"/images/icons/noavatar.jpg"
end
end