Sha256: 81179c2c946ae9794e0f9b49a77b86a2cab00f5c8ea442013704698efe2520c0
Contents?: true
Size: 733 Bytes
Versions: 1
Compression:
Stored size: 733 Bytes
Contents
module FcrepoAdmin class ObjectsController < ApplicationController layout 'fcrepo_admin/objects' include Hydra::Controller::ControllerBehavior include Hydra::PolicyAwareAccessControlsEnforcement include FcrepoAdmin::Controller::ControllerBehavior before_filter :load_and_authorize_object def show end def audit_trail if object_is_auditable? if params[:download] # TODO use format instead download param send_data @object.audit_trail.to_xml, :disposition => 'inline', :type => 'text/xml' end else render :text => I18n.t("fcrepo_admin.object.audit_trail.not_implemented"), :status => 404 end end def permissions end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fcrepo_admin-0.4.1 | app/controllers/fcrepo_admin/objects_controller.rb |