From cb4bf2ecf5f30e2f6f2b82f4ac3cc65d3c99e472 Mon Sep 17 00:00:00 2001 From: Samuel Young Date: Wed, 14 Jan 2026 14:48:28 +0000 Subject: [PATCH] fixup! CLDC-4145: Derive is partner for under 16s check if the was was null rather than current. avoids potential bugs on first assign --- app/models/lettings_log.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/lettings_log.rb b/app/models/lettings_log.rb index 09b6e9719..9c9894d32 100644 --- a/app/models/lettings_log.rb +++ b/app/models/lettings_log.rb @@ -408,7 +408,7 @@ class LettingsLog < Log end def age_changed_from_below_16(person_index) - public_send("age#{person_index}") && public_send("age#{person_index}_was") < 16 + public_send("age#{person_index}_was") && public_send("age#{person_index}_was") < 16 end def is_shared_housing?