lib/active_fedora/base.rb in active-fedora-1.2.3 vs lib/active_fedora/base.rb in active-fedora-1.2.4
- old
+ new
@@ -294,9 +294,10 @@
rescue ActiveFedora::ObjectNotFoundError
"You must provide either an ActiveFedora object or a valid pid to add it as a file object. You submitted #{obj.inspect}"
end
end
obj.add_relationship(:is_part_of, self)
+ obj.save
end
def collection_members_append(obj)
add_relationship(:has_collection_member, obj)
end