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

Version Path
hydra-access-controls-10.0.2 lib/hydra/admin_policy.rb
hydra-access-controls-10.0.1 lib/hydra/admin_policy.rb
hydra-access-controls-10.0.0 lib/hydra/admin_policy.rb
hydra-access-controls-10.0.0.beta4 lib/hydra/admin_policy.rb
hydra-access-controls-10.0.0.beta3 lib/hydra/admin_policy.rb
hydra-access-controls-10.0.0.beta2 lib/hydra/admin_policy.rb
hydra-access-controls-10.0.0.beta1 lib/hydra/admin_policy.rb