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:
parent
ee1c4677ea
commit
ae22dfcded
1 changed files with 5 additions and 1 deletions
|
@ -14,7 +14,11 @@ class Sequencer
|
||||||
private
|
private
|
||||||
|
|
||||||
def existing_mapped
|
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
|
end
|
||||||
|
|
||||||
def provide_mapped
|
def provide_mapped
|
||||||
|
|
Loading…
Reference in a new issue