2015-08-10 11:05:06 +02:00
|
|
|
class Commentaire < ActiveRecord::Base
|
|
|
|
belongs_to :dossier
|
2016-11-14 18:00:26 +01:00
|
|
|
belongs_to :champ
|
2016-04-20 16:51:57 +02:00
|
|
|
|
|
|
|
belongs_to :piece_justificative
|
2016-11-25 11:08:58 +01:00
|
|
|
|
|
|
|
def header
|
|
|
|
"#{email}, " + created_at.localtime.strftime('%d %b %Y %H:%M')
|
|
|
|
end
|
2015-08-10 11:05:06 +02:00
|
|
|
end
|