# @deprecated This is intended as a model used for testing (to cover all views). This will be removed no later than 6.x # EXAMPLE of a basic model that conforms to Hydra commonMetadata cModel and has basic MODS metadata (currently "Article" is the MODS exemplar) class CommonMetadataAsset < ActiveFedora::Base def initialize ActiveSupport::Deprecation.warn("CommonMetadataAsset is deprecated and will be removed from HydraHead in release 5 or 6; this exemplar code has been moved into wiki documentation here: https://github.com/projecthydra/hydra-head/wiki/Models---Some-Examples") super end # declares a rightsMetadata datastream with type Hydra::Datastream::RightsMetadata # basically, it is another expression of # has_metadata :name => "rightsMetadata", :type => Hydra::Datastream::RightsMetadata include Hydra::ModelMixins::CommonMetadata # adds helpful methods for basic hydra objects include Hydra::ModelMethods end