From 6a0784ab4ff00f100ab41e893d74a0ee224f1276 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Thu, 15 Mar 2018 10:11:39 +0100 Subject: [PATCH] Minor refactoring: Removed duplicate code. --- app/models/role.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/role.rb b/app/models/role.rb index d0a80b108..20525f034 100644 --- a/app/models/role.rb +++ b/app/models/role.rb @@ -82,7 +82,7 @@ returns =end def self.signup_role_ids - Role.where(active: true, default_at_signup: true).map(&:id) + signup_roles.map(&:id) end =begin