lib/geoff/container.rb in geoff-0.0.6 vs lib/geoff/container.rb in geoff-0.0.7
- old
+ new
@@ -41,10 +41,16 @@
private
def handle_node_dsl m, *args
node_dsl = @node_dsls[m]
- rel_properties = args.first
+ rel_properties = args.first || {}
+
+ if rel_properties[:clone]
+ node_dsl = node_dsl.clone
+ rel_properties.delete(:clone)
+ end
+
@recipient.add_node_dsl node_dsl, rel_properties
node_dsl
end
def handle_children_dsl m, *args