Fixes #3090: Failed to run import backend 'Import::Exchange'. Cause: Missing implementation of 'mapping' method for 'Sequencer::Unit::Import::Exchange::FolderContact::Mapping::Login'.

This commit is contained in:
Thorsten Eckel 2020-06-18 09:02:55 +02:00
parent ee1c4677ea
commit ae22dfcded

View file

@ -14,7 +14,11 @@ class Sequencer
private
def existing_mapped
@existing_mapped ||= mapped || ActiveSupport::HashWithIndifferentAccess.new
@existing_mapped ||= begin
# we need to use `state.optional` instead of just `mapped` here
# to prevent naming conflicts with other Unit methods named `mapped`
state.optional(:mapped) || ActiveSupport::HashWithIndifferentAccess.new
end
end
def provide_mapped