Module: Hanami::Extensions::Operation::ClassMethods Private

Defined in:
lib/hanami/extensions/operation.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 2.2.0

Instance Method Summary collapse

Instance Method Details

#configure_for_slice(slice) ⇒ 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:

  • 2.2.0



29
30
31
# File 'lib/hanami/extensions/operation.rb', line 29

def configure_for_slice(slice)
  include slice.namespace::Deps["db.rom"]
end

#inherited(subclass) ⇒ 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:

  • 2.2.0



35
36
37
38
39
40
41
42
# File 'lib/hanami/extensions/operation.rb', line 35

def inherited(subclass)
  super

  return unless subclass.superclass == self
  return unless Hanami.bundled?("hanami-db")

  subclass.include Dry::Operation::Extensions::ROM
end