Module: Integrative::Utils
- Included in:
- Integrative
- Defined in:
- lib/integrative/utils.rb
Instance Method Summary collapse
Instance Method Details
#integrate_into(records, integration_name, options = {}) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/integrative/utils.rb', line 3 def integrate_into(records, integration_name, = {}) if records.length > 0 integration = Integration.new(integration_name, records.first.class, ) integration.integrated_class.integrative_find_and_assign(records, integration) end end |