Method: Hanami::Model::Configuration#rom

Defined in:
lib/hanami/model/configuration.rb

#romObject

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.

Raises:

Since:

  • 1.0.0



139
140
141
142
143
144
145
# File 'lib/hanami/model/configuration.rb', line 139

def rom
  @rom ||= ROM::Configuration.new(@backend, @url, infer_relations: false)
rescue => exception
  raise UnknownDatabaseAdapterError.new(@url) if exception.message =~ /adapters/

  raise exception
end