Class: Hanami::Config::DB

Inherits:
Object
  • Object
show all
Includes:
Dry::Configurable
Defined in:
lib/hanami/config/db.rb

Overview

Hanami DB config

Since:

  • 2.2.0

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object (private)

Since:

  • 2.2.0



20
21
22
23
24
25
26
# File 'lib/hanami/config/db.rb', line 20

def method_missing(name, *args, &block)
  if config.respond_to?(name)
    config.public_send(name, *args, &block)
  else
    super
  end
end