spec/support/mods_asset.rb in hydra-access-controls-7.0.2 vs spec/support/mods_asset.rb in hydra-access-controls-7.1.0.rc1
- old
+ new
@@ -1,8 +1,7 @@
-require 'active-fedora'
class ModsAsset < ActiveFedora::Base
- include Hydra::AccessControls::Permissions
+ include Hydra::AccessControls::Embargoable
# 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
+ belongs_to :admin_policy, class_name: "Hydra::AdminPolicy", property: :is_governed_by
end