Method: Hanami::Model::Configuration#rom
- Defined in:
- lib/hanami/model/configuration.rb
#rom ⇒ Object
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.
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. =~ /adapters/ raise exception end |