Skip to content

Instantly share code, notes, and snippets.

@cfitz
Created November 18, 2010 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfitz/705589 to your computer and use it in GitHub Desktop.
Save cfitz/705589 to your computer and use it in GitHub Desktop.
hydra_tune.rb
# HydraTune
#
# Default content datastreams: content
#
require 'hydra'
class HydraTune < ActiveFedora::Base
include Hydra::ModelMethods # Uses the Hydra Rights Metadata Schema for tracking access permissions & copyright
has_metadata :name => "rightsMetadata", :type => Hydra::RightsMetadata
has_metadata :name => "descMetadata", :type => HydraTuneDS
# A place to put extra metadata values
def initialize( attrs={} )
super
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment