Sha256: 7619afed80f1b82df358c1d3db1671336d7988c847d60ab261c851956c32ca95

Contents?: true

Size: 236 Bytes

Versions: 3

Compression:

Stored size: 236 Bytes

Contents

class Email < ActiveRecord::Base

  has_many :attachments, class_name: DbFile, as: :owner

  validates :subject, presence: true
  validates :message, presence: true

  accepts_nested_attributes_for :attachments, allow_destroy: true

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
file_upload-0.0.3 test/dummy/app/models/email.rb
file_upload-0.0.2 test/dummy/app/models/email.rb
file_upload-0.0.1 test/dummy/app/models/email.rb