app/models/hyrax/permission_template.rb
def admin_set
      return AdminSet.find(source_id) if AdminSet.exists?(source_id)
      raise ActiveFedora::ObjectNotFoundError
    rescue ActiveFedora::ActiveFedoraError # TODO: remove the rescue when active_fedora issue #1276 is fixed
      raise ActiveFedora::ObjectNotFoundError
    end
# A bit of an analogue for a `belongs_to :admin_set` as it crosses from Fedora to the DB
# @return [AdminSet]
# @raise [ActiveFedora::ObjectNotFoundError] when the we cannot find the AdminSet
A bit of an analogue for a `belongs_to :admin_set` as it crosses from Fedora to the DB
A bit of an analogue for a ` belongs_to : admin_set ` as it crosses from Fedora to the DB
def admin_set
      return AdminSet.find(source_id) if AdminSet.exists?(source_id)
      raise ActiveFedora::ObjectNotFoundError
    rescue ActiveFedora::ActiveFedoraError 
      raise ActiveFedora::ObjectNotFoundError
    end
def admin_set return AdminSet . find ( source_id ) if AdminSet . exists? ( source_id ) raise ActiveFedora :: ObjectNotFoundError rescue ActiveFedora :: ActiveFedoraError raise ActiveFedora :: ObjectNotFoundError end
A bit of an analogue for a `belongs_to :admin_set` as it crosses from Fedora to the DB
A bit of an analogue for a ` belongs_to : admin_set ` as it crosses from Fedora to the DB
# TODO: remove the rescue when active_fedora issue #1276 is fixed
None
AdminSet
[ActiveFedora::ObjectNotFoundError] when the we cannot find the AdminSet
[ ActiveFedora :: ObjectNotFoundError ] when the we cannot find the AdminSet