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.
Instance Method Summary collapse
- #configure_for_slice(slice) ⇒ Object private
- #inherited(subclass) ⇒ Object private
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.
28 29 30 |
# File 'lib/hanami/extensions/operation.rb', line 28 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.
34 35 36 37 38 39 40 41 42 |
# File 'lib/hanami/extensions/operation.rb', line 34 def inherited(subclass) super return unless subclass.superclass == self return unless Hanami.bundled?("hanami-db") require "dry/operation/extensions/rom" subclass.include Dry::Operation::Extensions::ROM end |