Skip to content

Commit 2e5f7fa

Browse files
Al Davidsonthomasleese
andauthored
Update app/models/concerns/reporting_api/event_concern.rb
Co-authored-by: Thomas Leese <thomas@leese.io>
1 parent 5bc861b commit 2e5f7fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/concerns/reporting_api/event_concern.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module ReportingAPI::EventConcern
1414
protected
1515

1616
def set_patient_from_source
17-
self.patient = source.respond_to?(:patient) ? source&.patient : nil
17+
self.patient = source.try(:patient)
1818
end
1919

2020
def set_patient_year_group

0 commit comments

Comments
 (0)