app/services/admin_set_chooser.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, department)
    admin_set_determined_by_school = ["Laney Graduate School", "Candler School of Theology", "Emory College"]
    return school.first if admin_set_determined_by_school.include?(school.first) && valid_admin_sets.include?(school.first)
    return department.first if valid_admin_sets.include?(department.first)
  end
def determine_admin_set ( school , department ) admin_set_determined_by_school = [ "Laney Graduate School" , "Candler School of Theology" , "Emory College" ] return school . first if admin_set_determined_by_school . include? ( school . first ) && valid_admin_sets . include? ( school . first ) return department . first if valid_admin_sets . include? ( department . first ) 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>