From 69846a049403ff0b7089eefe05a6922e74bc31d8 Mon Sep 17 00:00:00 2001 From: Samuel Young Date: Thu, 11 Dec 2025 17:52:34 +0000 Subject: [PATCH] CLDC-4029: Reference scopes directly --- app/models/user.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index e4b6b41d4..ea8289e53 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -89,9 +89,9 @@ class User < ApplicationRecord additional_responsibilities.each do |responsibility| case responsibility when "key_contact" - scopes << send("is_key_contact") + scopes << is_key_contact when "data_protection_officer" - scopes << send("is_data_protection_officer") + scopes << is_data_protection_officer end end