2018-03-06 13:44:29 +01:00
|
|
|
class AssignTo < ApplicationRecord
|
2016-05-20 15:39:17 +02:00
|
|
|
belongs_to :procedure
|
|
|
|
belongs_to :gestionnaire
|
2017-10-02 17:03:30 +02:00
|
|
|
has_one :procedure_presentation, dependent: :destroy
|
|
|
|
|
|
|
|
def procedure_presentation_or_default
|
|
|
|
self.procedure_presentation || build_procedure_presentation
|
|
|
|
end
|
2017-04-04 15:27:04 +02:00
|
|
|
end
|