demarches-normaliennes/app/models/piece_jointe.rb

12 lines
235 B
Ruby
Raw Normal View History

class PieceJointe < ActiveRecord::Base
belongs_to :dossier
belongs_to :type_piece_jointe
2015-08-18 16:44:16 +02:00
delegate :api_entreprise, to: :type_piece_jointe
mount_uploader :content, PieceJointeUploader
2015-08-18 16:51:57 +02:00
def empty?
content.blank?
end
end