class EventPhotoUploader

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/event_photo_uploader.rb, line 9
def extension_white_list
  %w[jpg jpeg png]
end