app/contracts/attachments/create_contract.rb
##
# Returns whether the attachment matches the whitelist
Returns whether the attachment matches the whitelist
Returns whether the attachment matches the whitelist
def matches_whitelist?(whitelist)
      return true if whitelist.empty?
      whitelist.include?(model.content_type) || whitelist.include?("*#{model.extension}")
    end
def matches_whitelist? ( whitelist ) return true if whitelist . empty? whitelist . include? ( model . content_type ) || whitelist . include? ( "*#{model.extension}" ) end
Returns whether the attachment matches the whitelist
Returns whether the attachment matches the whitelist
whitelist