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



334
335
336
# File 'lib/formkeeper.rb', line 334

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