Class: FormKeeper::CombinationConstraint::Any
- 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 |