app/models/concerns/embargo_behavior.rb
# Set the current visibility to match what is described in the embargo.
Set the current visibility to match what is described in the embargo.
Set the current visibility to match what is described in the embargo .
def embargo_visibility!
    return unless embargo_release_date
    uri = if under_embargo?
            embargo.visibility_during_embargo
          else
            embargo.visibility_after_embargo
          end
    self.admin_policy_id = ActiveFedora::Base.uri_to_id(uri.id)
  end
def embargo_visibility! return unless embargo_release_date uri = if under_embargo? embargo . visibility_during_embargo else embargo . visibility_after_embargo end self . admin_policy_id = ActiveFedora :: Base . uri_to_id ( uri . id ) end
Set the current visibility to match what is described in the embargo.
Set the current visibility to match what is described in the embargo .