Sha256: 0753217cfdf2f01b11388f5575d70f295f972012657db78f7b27dd03c6515b5f
Contents?: true
Size: 859 Bytes
Versions: 8
Compression:
Stored size: 859 Bytes
Contents
module MessageTrain class Attachment < ActiveRecord::Base belongs_to :message has_attached_file :attachment validates_attachment_presence :attachment validates_attachment_content_type :attachment, content_type: [ "application/pdf", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/rtf", "text/plain", /^image\/.*$/ ] end end
Version data entries
8 entries across 8 versions & 1 rubygems