Sha256: 200292c2aa3abee37b48a9656b397db54a4bbeedd20ea7e87e971b58a9dc5690

Contents?: true

Size: 355 Bytes

Versions: 4

Compression:

Stored size: 355 Bytes

Contents

require 'active-fedora'

class ModsAsset < ActiveFedora::Base
  include Hydra::AccessControls::Permissions
 
  # This is how we're associating admin policies with assets.  
  # You can associate them however you want, just use the :is_governed_by relationship
  belongs_to :admin_policy, :class_name=> "Hydra::AdminPolicy", :property=>:is_governed_by
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hydra-access-controls-6.5.2 spec/support/mods_asset.rb
hydra-access-controls-6.5.1 spec/support/mods_asset.rb
hydra-access-controls-6.5.0 spec/support/mods_asset.rb
hydra-access-controls-6.5.0.rc2 spec/support/mods_asset.rb