demarches-normaliennes/app/models/piece_justificative.rb
2015-11-03 10:48:40 +01:00

11 lines
335 B
Ruby

class PieceJustificative < ActiveRecord::Base
belongs_to :dossier
belongs_to :type_de_piece_justificative
delegate :api_entreprise, :libelle, to: :type_de_piece_justificative
alias_attribute :type, :type_de_piece_justificative_id
mount_uploader :content, PieceJustificativeUploader
def empty?
content.blank?
end
end