Class: Hanami::Providers::Relations Private

Inherits:
Hanami::Provider::Source show all
Defined in:
lib/hanami/providers/relations.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 2.2.0

Instance Attribute Summary

Attributes inherited from Hanami::Provider::Source

#slice

Instance Method Summary collapse

Methods inherited from Hanami::Provider::Source

#initialize, #target_container

Constructor Details

This class inherits a constructor from Hanami::Provider::Source

Instance Method Details

#startObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 2.2.0



8
9
10
11
12
13
14
# File 'lib/hanami/providers/relations.rb', line 8

def start
  start_and_import_parent_relations and return if slice.parent && slice.config.db.import_from_parent

  slice.start :db

  register_relations target["db.rom"]
end