Sha256: 3841e9ad2d134a1742263947b35b908cf7ddeaeb3526c4a3e450f2d681ce6a57
Contents?: true
Size: 497 Bytes
Versions: 5
Compression:
Stored size: 497 Bytes
Contents
module Dorsale module Alexandrie class Attachment < ActiveRecord::Base self.table_name = "dorsale_alexandrie_attachments" belongs_to :attachable, polymorphic: true belongs_to :sender, polymorphic: true validates :attachable, presence: true validates :sender, presence: true validates :file, presence: true mount_uploader :file, ::Dorsale::Alexandrie::FileUploader def to_s file_identifier end end end end
Version data entries
5 entries across 5 versions & 1 rubygems