lib/rdf/ldp/resource.rb in rdf-ldp-0.8.0 vs lib/rdf/ldp/resource.rb in rdf-ldp-0.9.0
- old
+ new
@@ -561,9 +561,13 @@
"<#{uri}>;rel=\"type\""
end
##
# Sets the last modified date/time to now
+ #
+ # @param transaction [RDF::Transaction] the transaction scope in which to
+ # apply changes. If none (or `nil`) is given, the change is made outside
+ # any transaction scope.
def set_last_modified(transaction = nil)
if transaction
# transactions do not support updates or pattern deletes, so we must
# ask the Repository for the current last_modified to delete the statement
# transactionally