module Integrative::Utils

Public Instance Methods

integrate_into(records, integration_name, options = {}) click to toggle source
# File lib/integrative/utils.rb, line 3
def integrate_into(records, integration_name, options = {})
  if records.length > 0
    integration = Integration.new(integration_name, records.first.class, options)
    integration.integrated_class.integrative_find_and_assign(records, integration)
  end
end