From 84cac7a5c28534cac08189fd1dd784141b7b4863 Mon Sep 17 00:00:00 2001 From: Frederic Merizen Date: Tue, 23 Oct 2018 11:34:11 +0200 Subject: [PATCH] [#2604] Remove unneeded self in AssignTo --- app/models/assign_to.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/assign_to.rb b/app/models/assign_to.rb index e044014c7..af232d267 100644 --- a/app/models/assign_to.rb +++ b/app/models/assign_to.rb @@ -4,6 +4,6 @@ class AssignTo < ApplicationRecord has_one :procedure_presentation, dependent: :destroy def procedure_presentation_or_default - self.procedure_presentation || build_procedure_presentation + procedure_presentation || build_procedure_presentation end end