lib/ddr/models/governable.rb in ddr-models-2.11.0 vs lib/ddr/models/governable.rb in ddr-models-3.0.0.alpha.1
- old
+ new
@@ -2,10 +2,12 @@
module Models
module Governable
extend ActiveSupport::Concern
included do
- belongs_to :admin_policy, :property => :is_governed_by, :class_name => "Collection"
+ belongs_to :admin_policy,
+ predicate: ActiveFedora::RDF::ProjectHydra.isGovernedBy,
+ class_name: "Collection"
end
def inherited_permissions
admin_policy ? admin_policy.default_permissions : []
end