Skip to content

Commit

Permalink
Remove unneeded conditional, mysql is not supported anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
kronn committed Sep 3, 2024
1 parent 2888bc8 commit 83c504b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/controllers/cevi/event/participations_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

# Copyright (c) 2012-2020, CEVI Regionalverband ZH-SH-GL. This file is part of
# Copyright (c) 2012-2024, CEVI Regionalverband ZH-SH-GL. This file is part of
# hitobito_cevi 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_cevi.
Expand All @@ -12,11 +12,7 @@ module ParticipationsController

included do
sort_mappings_with_indifferent_access["ortsgruppe"] =
if /mysql/.match?(::Event.connection.adapter_name.downcase)
'CONCAT_WS("", groups.short_name, groups.name)'
else
"(COALESCE(groups.short_name, '') || groups.name)"
end
"(COALESCE(groups.short_name, '') || groups.name)"

alias_method_chain :assign_attributes, :check
end
Expand Down

0 comments on commit 83c504b

Please sign in to comment.