Class: Hanami::Model::Configuration

Inherits:
Object
  • Object
show all
Defined in:
gems/gems/hanami-model-1.3.2/lib/hanami/model/configuration.rb

Overview

Configuration for the framework, models and adapters.

Hanami::Model has its own global configuration that can be manipulated via Hanami::Model.configure.

Since:

  • 0.2.0

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *args, &blk) ⇒ 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.

Since:

  • 1.0.0

def method_missing(method_name, *args, &blk)
  if rom.respond_to?(method_name)
    rom.__send__(method_name, *args, &blk)
  else
    super
  end
end

Instance Method Details

#migrationsObject

Migrations directory

Since:

  • 0.4.0

def migrations
  (@migrations.nil? ? root : root.join(@migrations)).realpath
end

#schemaObject

Path for schema dump file

Since:

  • 0.4.0

def schema
  @schema.nil? ? root : root.join(@schema)
end