Module: Reality::Facets
- Defined in:
- lib/reality/facets/core.rb,
lib/reality/facets/facet.rb,
lib/reality/facets/faceted_model.rb,
lib/reality/facets/target_manager.rb,
lib/reality/facets/facet_container.rb,
lib/reality/facets/extension_manager.rb,
lib/reality/facets/generators_integration.rb
Overview
nodoc
Defined Under Namespace
Modules: FacetContainer, Faceted Classes: ExtensionManager, Facet, Target, TargetManager
Class Method Summary collapse
-
.copy_targets_to_generator_target_manager(template_set_container, facet_container) ⇒ Object
Copy the targets from the specified generator container to the facet container.
Class Method Details
.copy_targets_to_generator_target_manager(template_set_container, facet_container) ⇒ Object
Copy the targets from the specified generator container to the facet container. This is typically used when projects include both reality-generators and reality-facets and do not want to duplicate the code tor defining targets in both systems
22 23 24 25 26 |
# File 'lib/reality/facets/generators_integration.rb', line 22 def copy_targets_to_generator_target_manager(template_set_container, facet_container) facet_container.target_manager.targets.each do |target| template_set_container.target_manager.target(target.key, target.container_key, :access_method => target.access_method) end end |