Sha256: 29c57df77cd1b90a750783968ef1dc7b513debdf130cf4f86343c3a7b13a0791
Contents?: true
Size: 775 Bytes
Versions: 7
Compression:
Stored size: 775 Bytes
Contents
module Hydra class AdminPolicy < ActiveFedora::Base include Hydra::AdminPolicyBehavior include Hydra::AccessControls::Permissions property :title, predicate: ::RDF::Vocab::DC.title do |index| index.as :stored_searchable end property :description, predicate: ::RDF::Vocab::DC.description do |index| index.as :searchable end # Hack until ActiveFedora supports activeTriples 0.3.0 (then we can just use super) def description_with_first description_without_first.first end alias_method_chain :description, :first # Hack until ActiveFedora supports activeTriples 0.3.0 (then we can just use super) def title_with_first title_without_first.first end alias_method_chain :title, :first end end
Version data entries
7 entries across 7 versions & 1 rubygems