Module: ROM::Initializer Private
- Included in:
- Associations::Abstract, Associations::Definitions::Abstract, Attribute, AutoRegistration, AutoRegistrationStrategies::Base, Changeset, Changeset::Associated, Changeset::Pipe, Command, CommandCompiler, Commands::Graph, MapperCompiler, Plugin, Registry, Relation, Relation::Curried, Relation::Graph, Repository, Schema, Schema::DSL, Schema::Inferrer, StructCompiler
- Defined in:
- core/lib/rom/initializer.rb
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.
Defined Under Namespace
Modules: DefineWithHook, InstanceMethods
Class Method Summary collapse
- .extended(base) ⇒ Object private
Class Method Details
.extended(base) ⇒ 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.
49 50 51 52 53 54 55 56 57 |
# File 'core/lib/rom/initializer.rb', line 49 def self.extended(base) base.module_eval do undef_method(:with) if method_defined?(:with) extend(Dry::Initializer[undefined: false]) extend(DefineWithHook) include(InstanceMethods) end end |