Sha256: 2bcb1049f320f9dad5bcf4445624aee3a29935e1a2d05711837cde66616febee
Contents?: true
Size: 511 Bytes
Versions: 13
Compression:
Stored size: 511 Bytes
Contents
module Curate::ParentContainer extend ActiveSupport::Concern included do helper_method :parent end def parent @parent ||= if params[:id] curation_concern.batch else ActiveFedora::Base.find(namespaced_parent_id,cast: true) end end def namespaced_parent_id Sufia::Noid.namespaceize(params[:parent_id]) end protected :namespaced_parent_id def authorize_edit_parent_rights! authorize! :edit, parent end protected :authorize_edit_parent_rights! end
Version data entries
13 entries across 13 versions & 1 rubygems