Method: Hanami::Model::Configuration#connection

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

#connectionObject

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.

NOTE: This must be changed when we want to support several adapters at the time

Raises:

Since:

  • 0.7.0



57
58
59
# File 'lib/hanami/model/configuration.rb', line 57

def connection
  gateway.connection
end