lib/authpds/acts_as_authentic.rb in authpds-0.0.4 vs lib/authpds/acts_as_authentic.rb in authpds-0.0.5
- old
+ new
@@ -26,12 +26,9 @@
InstitutionList.instance.get(user_attributes[:primary_institution]) unless user_attributes.nil?
end
def primary_institution=(primary_institution)
primary_institution = primary_institution.name if primary_institution.is_a?(Institution)
- raise ArgumentError.new(
- "Institution #{primary_institution} does not exist.\n" +
- "Please maker sure the institutions yaml file is configured correctly.") if InstitutionList.instance.get(primary_institution).nil?
self.user_attributes=({:primary_institution => primary_institution})
end
def institutions
return nil unless InstitutionList.institutions_defined?
\ No newline at end of file