lib/kanzen.rb in kanzen-0.5.0 vs lib/kanzen.rb in kanzen-0.6.0

- old
+ new

@@ -15,10 +15,10 @@ # given attribute is valid or not. # We convert attributes to string and since nils # are converted to "", we can compare that to see # if a given attribute is different from an empty # string literal - DEFAULT_PROC = Proc.new do |attribute_name, value| + DEFAULT_PROC = Proc.new do |attribute_name, value, model| value.to_s != "" end # Returns true if the model and its associations are # all filled.