19 lines
747 B
Ruby
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
|