diff --git a/app/decorators/sac_cas/group_decorator.rb b/app/decorators/sac_cas/group_decorator.rb index c712c4b81..3b457c03c 100644 --- a/app/decorators/sac_cas/group_decorator.rb +++ b/app/decorators/sac_cas/group_decorator.rb @@ -33,7 +33,7 @@ def has_youth_organization? object.social_accounts.any? { |account| account.label == 'Homepage JO' } end - # Sort roles alphabetically, but make "Andere" show up last. Constants listed to be findable. + # Sort roles alphabetically, but make "Andere" show up last. def role_types klass.role_types.sort_by { |role| [role.name.end_with?('::Andere') ? 1 : 0, role.label] } end