hitobito-kjv/app/domain/kjv/import/person.rb
KJV Bautzen d3b74c9030 Initialer Wagon hitobito_kjv 🤖
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 14:32:02 +02:00

19 lines
747 B
Ruby

# frozen_string_literal: true
# Copyright (c) 2026, Kreisjagdverband Bautzen e.V. This file is part of
# hitobito_kjv and licensed under the Affero General Public License version 3
# or later. See the COPYING file at the top-level directory.
# Klassenmethoden von Import::Person: ausgeblendete Felder und Social-Media-Konten
# stehen beim CSV-Import nicht zur Auswahl. Die neuen KJV-Felder kommen automatisch
# über die Datenbankspalten hinzu.
module Kjv::Import::Person
def relevant_attributes
super - Kjv::Person::HIDDEN_ATTRS.map(&:to_s)
end
def fields
social_account_keys = Import::ContactAccountFields.new(SocialAccount).fields.pluck(:key)
super.reject { |field| social_account_keys.include?(field[:key]) }
end
end