app/lib/chouette/sync.rb
# When subclasses needs to create several updaters
When subclasses needs to create several updaters
When subclasses needs to create several updaters
def new_updater(options = {})
        default_options = {
          source: source, target: target,
          update_batch_size: update_batch_size,
          resource_type: resource_type, resource_id_attribute: resource_id_attribute,
          resource_decorator: resource_decorator,
          model_type: model_type, model_id_attribute: model_id_attribute,
          event_handler: event_handler
        }.delete_if { |_,v| v.nil? }
        options = default_options.merge(options)
        updater_class.new options
      end
def new_updater ( options = { } ) default_options = { source : source , target : target , update_batch_size : update_batch_size , resource_type : resource_type , resource_id_attribute : resource_id_attribute , resource_decorator : resource_decorator , model_type : model_type , model_id_attribute : model_id_attribute , event_handler : event_handler } . delete_if { | _ , v | v . nil? } options = default_options . merge ( options ) updater_class . new options end
When subclasses needs to create several updaters
When subclasses needs to create several updaters
options