class ProfilePhotoUploader
Public Instance Methods
extension_white_list()
click to toggle source
Add a white list of extensions which are allowed to be uploaded. For images you might use something like this:
# File lib/buweb/uploaders/profile_photo_uploader.rb, line 25 def extension_white_list %w(jpg jpeg png) end