Update app/controllers/concerns/turbo_champs_concern.rb

Co-authored-by: Colin Darie <colin@darie.eu>
This commit is contained in:
Paul Chavard 2023-03-07 17:48:16 +00:00 committed by Paul Chavard
parent c521724cf4
commit 53e6ad135f

View file

@ -16,8 +16,7 @@ module TurboChampsConcern
def champs_to_one_selector(champs)
champs
.map(&:input_group_id)
.map { |id| "##{id}" }
.map { "##{_1.input_group_id}" }
.join(',')
end
end