Skip to content

Commit

Permalink
Communicate use clearer what we need here
Browse files Browse the repository at this point in the history
After all, name might change, sti_name is specifically for this
  • Loading branch information
kronn committed Dec 18, 2024
1 parent ac56e01 commit 381bd99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/domain/jubla/role/alumnus_manager.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

# Copyright (c) 2021, Jungwacht Blauring Schweiz. This file is part of
# Copyright (c) 2021-2024, Jungwacht Blauring Schweiz. This file is part of
# hitobito_jubla and licensed under the Affero General Public License version 3
# or later. See the COPYING file at the top-level directory or at
# https://github.com/hitobito/hitobito_jubla.
Expand Down Expand Up @@ -55,7 +55,7 @@ def destroy_alumnus_role
person
.roles
.joins(:group)
.where(group: group, type: group.alumnus_class.name)
.where(group: group, type: group.alumnus_class.sti_name)
.destroy_all
end

Expand Down
2 changes: 1 addition & 1 deletion app/domain/jubla/role/light_alumnus_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def destroy_alumnus_role
person
.roles
.joins(:group)
.where(group: group, type: group.alumnus_class.name)
.where(group: group, type: group.alumnus_class.sti_name)
.destroy_all
end

Expand Down

0 comments on commit 381bd99

Please sign in to comment.