Class: FormKeeper::CombinationConstraint::Different

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

Instance Method Summary collapse

Instance Method Details

#validate(values, arg) ⇒ Object



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

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