lib/sugarcrm/attribute_methods.rb in sugarcrm-0.8.1 vs lib/sugarcrm/attribute_methods.rb in sugarcrm-0.8.2

- old
+ new

@@ -52,12 +52,12 @@ valid = true self.class._module.required_fields.each do |attribute| case attr_type_for(attribute) when "bool" case @attributes[attribute] - when TrueClass: + when TrueClass next - when FalseClass: + when FalseClass next else @errors.add "#{attribute} must be true or false" valid = false end \ No newline at end of file