Class: FormKeeper::CombinationConstraint::Any

Inherits:
Base
  • Object
show all
Defined in:
lib/formkeeper.rb

Instance Method Summary collapse

Instance Method Details

#validate(values, arg) ⇒ Object



326
327
328
# File 'lib/formkeeper.rb', line 326

def validate(values, arg)
  values.any? { |v| not (v.nil? or v.empty?) }
end