config/initializers/active_fedora_base.rb in ddr-models-3.0.0.beta.16 vs config/initializers/active_fedora_base.rb in ddr-models-3.0.0.beta.17

- old
+ new

@@ -15,11 +15,11 @@ def has_children? can_have_children? and children.size > 0 end def can_have_content? - datastreams.key? "content" + attached_files.key? "content" end def has_content? can_have_content? && content.has_content? end @@ -36,11 +36,11 @@ def has_admin_policy? governable? && admin_policy.present? end def can_have_struct_metadata? - datastreams.key? Ddr::Models::File::STRUCT_METADATA + attached_files.key? Ddr::Models::File::STRUCT_METADATA end def has_struct_metadata? can_have_struct_metadata? && structMetadata.has_content? end @@ -50,12 +50,12 @@ end def has_multires_image? can_have_multires_image? && multires_image_file_path.present? end - + def can_have_thumbnail? - datastreams.key? "thumbnail" + attached_files.key? "thumbnail" end def has_thumbnail? can_have_thumbnail? && thumbnail.has_content? end