Class: FormKeeper::CombinationConstraint::Same

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

Instance Method Summary collapse

Instance Method Details

#validate(values, arg) ⇒ Object



320
321
322
323
# File 'lib/formkeeper.rb', line 320

def validate(values, arg)
  return false unless values.size == 2
  values[0] == values[1]
end