Sha256: 8f5856b4881acaab5cf2506bd8676e375759190fb38f2f9b5b1af199f56d4eac
Contents?: true
Size: 563 Bytes
Versions: 5
Compression:
Stored size: 563 Bytes
Contents
module PowerStencil module Project module RequireEntityDefinition def securely_require_with_entity_class_detection(source, &block) before = PowerStencil::Engine::EntitiesHandling.all_types yield after = PowerStencil::Engine::EntitiesHandling.all_types after.reject { |k, _| before.keys.include? k }.each do |_, defined_entity_class| provider = source defined_entity_class.instance_eval do @entity_type_source_provider = provider end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems