lib/institutions/institution/core.rb in institutions-0.0.3 vs lib/institutions/institution/core.rb in institutions-0.0.4
- old
+ new
@@ -27,10 +27,10 @@
set_required_attributes code, name
# Merge in the optional hash attribute
merge h unless h.nil?
# If the institution is named default, take that as an
# indication that it's the default institution
- @default = true if (name.eql? "default" or name.eql? "DEFAULT")
+ @default = true if name.downcase.eql? "default"
# If default was never set, explicitly set default as false.
@default = false if default.nil?
end
#
\ No newline at end of file