class FeaturePhotoUploader

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/feature_photo_uploader.rb, line 29
def extension_white_list
  %w(jpg jpeg png)
end