9 lines
257 B
Ruby
9 lines
257 B
Ruby
class AssignTo < ActiveRecord::Base
|
|
belongs_to :procedure
|
|
belongs_to :gestionnaire
|
|
has_one :procedure_presentation, dependent: :destroy
|
|
|
|
def procedure_presentation_or_default
|
|
self.procedure_presentation || build_procedure_presentation
|
|
end
|
|
end
|