app/models/hyrax/permission_template.rb
# A bit of an analogue for a `belongs_to :source_model` as it crosses from Fedora to the DB
# @return [AdminSet | Collection]
# @raise [ActiveFedora::ObjectNotFoundError] when neither an AdminSet or Collection is found
A bit of an analogue for a `belongs_to :source_model` as it crosses from Fedora to the DB
A bit of an analogue for a ` belongs_to : source_model ` as it crosses from Fedora to the DB
def source_model
      admin_set
    rescue ActiveFedora::ObjectNotFoundError
      collection
    end
def source_model admin_set rescue ActiveFedora :: ObjectNotFoundError collection end
A bit of an analogue for a `belongs_to :source_model` as it crosses from Fedora to the DB
A bit of an analogue for a ` belongs_to : source_model ` as it crosses from Fedora to the DB
None
AdminSet | Collection
[ActiveFedora::ObjectNotFoundError] when neither an AdminSet or Collection is found
[ ActiveFedora :: ObjectNotFoundError ] when neither an AdminSet or Collection is found