lib/cobra_commander/umbrella.rb in cobra_commander-0.9.0 vs lib/cobra_commander/umbrella.rb in cobra_commander-0.9.1
- old
+ new
@@ -19,9 +19,10 @@
@root_component
end
def resolve(component_root_path)
return root if root.root_paths.include?(component_root_path)
+
components.find do |component|
component.root_paths.include?(component_root_path)
end
end