lib/authpds/controllers/authpds_controller.rb in authpds-0.0.14 vs lib/authpds/controllers/authpds_controller.rb in authpds-0.0.15
- old
+ new
@@ -31,10 +31,10 @@
@current_primary_institution ||=
(InstitutionList.institutions_defined?) ?
(params["#{institution_param_key}"].nil? or InstitutionList.instance.get(params["#{institution_param_key}"]).nil?) ?
(primary_institution_from_ip.nil?) ?
(current_user.nil? or current_user.primary_institution.nil?) ?
- InstitutionList.instance.default_institutions.first :
+ InstitutionList.instance.defautls.first :
current_user.primary_institution :
primary_institution_from_ip :
InstitutionList.instance.get(params["#{institution_param_key}"]) :
nil
end
\ No newline at end of file