Module: Foobara::ModelPlumbing
- Defined in:
- foobara-0.7.3/projects/model_plumbing/src/model_plumbing.rb,
foobara-0.7.3/projects/model_plumbing/lib/foobara/model_plumbing.rb,
foobara-0.7.3/projects/model_plumbing/src/domain_mapper_extension.rb
Defined Under Namespace
Modules: DomainMapperExtension
Class Method Summary collapse
Class Method Details
.install! ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'projects/model_plumbing/lib/foobara/model_plumbing.rb', line 4 def install! Model.on_reregister do seen = Set.new Namespace.global. do |scoped| if scoped.respond_to?(:handle_reregistered_types!) scoped.handle_reregistered_types!(seen) end end end CommandPatternImplementation.include CommandPatternImplementation::Concerns::ModelInputsType DomainMapper.singleton_class.prepend(ModelPlumbing::DomainMapperExtension) end |