delegate libelle do type piece jointe

This commit is contained in:
Tanguy PATTE 2015-08-18 17:00:09 +02:00
parent bda3a410c4
commit 92e522eb3d
2 changed files with 4 additions and 17 deletions

View file

@ -1,7 +1,7 @@
class PieceJointe < ActiveRecord::Base
belongs_to :dossier
belongs_to :type_piece_jointe
delegate :api_entreprise, to: :type_piece_jointe
delegate :api_entreprise, :libelle, to: :type_piece_jointe
mount_uploader :content, PieceJointeUploader