From 7eee2342e5b3bd39dc24e1bf40146f25f3bf6878 Mon Sep 17 00:00:00 2001 From: Shujat Khalid Date: Fri, 22 Sep 2023 10:28:39 +0100 Subject: [PATCH] refactored to give direct access to subject_limited value --- app/models/application_form.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/models/application_form.rb b/app/models/application_form.rb index f255a59dbd..3004c7bae5 100644 --- a/app/models/application_form.rb +++ b/app/models/application_form.rb @@ -227,9 +227,7 @@ def english_language_exempt? end def secondary_education_teaching_qualification_required? - CountryCode.secondary_education_teaching_qualification_required?( - country.code, - ) + country&.subject_limited || false end def created_under_new_regulations?