lib/xamplr-gen/templates/element_empty.template in xamplr-gen-1.9.3 vs lib/xamplr-gen/templates/element_empty.template in xamplr-gen-1.9.4
- old
+ new
@@ -165,10 +165,14 @@
|}
|
end
def append_to(other)
- other.add_#{element.attribute_name}(self)
+ other.add_#{@element.attribute_name}(self)
+ end
+
+ def remove_from(other)
+ other.remove_#{@element.attribute_name}(self) if (other.respond_to?("remove_#{@element.attribute_name}"))
end
|
|if @element.persisted then
|