projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
5197: update the collection_owner_uuid_name_unique index to use expires_at is null...
[arvados.git]
/
services
/
api
/
lib
/
kind_and_etag.rb
diff --git
a/services/api/lib/kind_and_etag.rb
b/services/api/lib/kind_and_etag.rb
index 89c01ef3a2e086fdd38f2de2923dc00f7324c4a3..04fdca426ea06647b890fb77430c3751b235fe12 100644
(file)
--- a/
services/api/lib/kind_and_etag.rb
+++ b/
services/api/lib/kind_and_etag.rb
@@
-14,7
+14,7
@@
module KindAndEtag
self.class.kind
end
- def etag
- Digest::MD5.hexdigest(
self
.inspect).to_i(16).to_s(36)
+ def etag
attrs=nil
+ Digest::MD5.hexdigest(
(attrs || self.attributes)
.inspect).to_i(16).to_s(36)
end
end