Skip to content

Commit

Permalink
552 change comment in group_decorator.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Largo committed May 22, 2024
1 parent dfd490d commit d09db7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/decorators/sac_cas/group_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d09db7b

Please sign in to comment.