lib/ddr/models/attached_file_profile.rb in ddr-models-3.0.0.rc4 vs lib/ddr/models/attached_file_profile.rb in ddr-models-3.0.0.rc5

- old
+ new

@@ -3,10 +3,14 @@ module Ddr::Models class AttachedFileProfile < SimpleDelegator include ActiveModel::Serializers::JSON def attributes - { "size" => nil, "mime_type" => nil } + { "size"=>nil, "mime_type"=>nil, "sha1"=>nil } + end + + def sha1 + checksum.value end end end