# File formvalidator.rb, line 491 def constraints return nil unless Hash === @profile[:constraints] @profile[:constraints].each do |key,constraint| do_constraint(key, [constraint].flatten) if @form[key] end end