app/models/etd.rb
# Determine what admin set an ETD should belong to, based on what school and
# department it belongs to
# @return [String] the name of an admin set
Determine what admin set an ETD should belong to, based on what school and
department it belongs to
Determine what admin set an ETD should belong to based on what school and department it belongs to
def determine_admin_set(school = self.school, department = self.department)
    return "Default Admin Set" if migrated?
    as_name = AdminSetChooser.new.determine_admin_set(school, department)
    raise "Cannot find admin set config where school = #{school.first} and department = #{department.first}" unless as_name
    as_name
  end
def determine_admin_set ( school = self . school , department = self . department ) return "Default Admin Set" if migrated? as_name = AdminSetChooser . new . determine_admin_set ( school , department ) raise "Cannot find admin set config where school = #{school.first} and department = #{department.first}" unless as_name as_name end
Determine what admin set an ETD should belong to, based on what school and
department it belongs to
Determine what admin set an ETD should belong to based on what school and department it belongs to
the name of an admin set
the name of an admin set
String
school
<not_specific>
department
<not_specific>